Skip to content

Commit

Permalink
Merge pull request #184 from t3knomanzer/fix-msg-create-crash
Browse files Browse the repository at this point in the history
Catching incorrect message type exception
  • Loading branch information
t3knomanzer authored Sep 11, 2020
2 parents aed1bb0 + 16ed4a8 commit dbbd570
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 dbbd570

Please sign in to comment.