Skip to content

Commit

Permalink
Catching incorrect message type exception
Browse files Browse the repository at this point in the history
  • Loading branch information
t3knomanzer committed Sep 11, 2020
1 parent aed1bb0 commit 16ed4a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private void OnDataReceived(object sender, SerialDataReceivedEventArgs args)
RaiseMessageReceived(message);
}
}
catch (ArgumentException e)
catch (Exception e)
{
RaiseError("Deserialization error: " + e.Message);
}
Expand Down

0 comments on commit 16ed4a8

Please sign in to comment.