diff --git a/CHANGELOG.md b/CHANGELOG.md index 691cd0ac..9a3a88b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Include the cause of Android key store exceptions in Sentry reports +- Do not report transport errors to Sentry when updating schemes ### Fixed - Stacktraces of native Android errors not parsed correctly diff --git a/irmagobridge/event_handler.go b/irmagobridge/event_handler.go index e2c5de05..c42cc380 100644 --- a/irmagobridge/event_handler.go +++ b/irmagobridge/event_handler.go @@ -2,6 +2,7 @@ package irmagobridge import ( "fmt" + "github.com/go-errors/errors" irma "github.com/privacybydesign/irmago" irmaclient "github.com/privacybydesign/irmago/irmaclient" diff --git a/irmagobridge/receive_event.go b/irmagobridge/receive_event.go index 0ccd84a1..2668bb0a 100644 --- a/irmagobridge/receive_event.go +++ b/irmagobridge/receive_event.go @@ -5,6 +5,7 @@ import ( "fmt" "github.com/go-errors/errors" + irma "github.com/privacybydesign/irmago" ) // DispatchFromNative receives events from the Android / iOS native side @@ -78,6 +79,10 @@ func DispatchFromNative(eventName, payloadString string) { go func() { defer recoverFromPanic("Handling UpdateSchemesEvent panicked") err := bridgeEventHandler.updateSchemes() + // Ignore transport errors + if serr, ok := err.(*irma.SessionError); ok && serr.ErrorType == irma.ErrorTransport { + return + } if err != nil { reportError(errors.New(err), false) }