diff --git a/lib/src/main/java/de/kuschku/libquassel/session/ProtocolHandler.kt b/lib/src/main/java/de/kuschku/libquassel/session/ProtocolHandler.kt index 292dc67be08a23505a79f7a42b7faadaa78274b3..d6b239c3808d8f5f36cb76b5851a5f17d36cb9bd 100644 --- a/lib/src/main/java/de/kuschku/libquassel/session/ProtocolHandler.kt +++ b/lib/src/main/java/de/kuschku/libquassel/session/ProtocolHandler.kt @@ -43,6 +43,8 @@ abstract class ProtocolHandler( if (!super<SignalProxy>.handle(f)) { log(DEBUG, "ProtocolHandler", "No receiver registered for $f") } + } catch (e: ObjectNotFoundException) { + log(DEBUG, "ProtocolHandler", "An error has occured while processing $f", e) } catch (e: Throwable) { exceptionHandler.invoke(MessageHandlingException.SignalProxy(f, e)) } @@ -56,6 +58,8 @@ abstract class ProtocolHandler( if (!super<AuthHandler>.handle(f)) { log(DEBUG, "ProtocolHandler", "No receiver registered for $f") } + } catch (e: ObjectNotFoundException) { + log(DEBUG, "ProtocolHandler", "An error has occured while processing $f", e) } catch (e: Throwable) { exceptionHandler.invoke(MessageHandlingException.Handshake(f, e)) } diff --git a/malheur/src/main/java/de/kuschku/malheur/CrashHandler.kt b/malheur/src/main/java/de/kuschku/malheur/CrashHandler.kt index 487462636305f69e50e5f854bee9d4440aa2197c..0e7d0b70704d4e3976711b06a765f5acfb2ff549 100644 --- a/malheur/src/main/java/de/kuschku/malheur/CrashHandler.kt +++ b/malheur/src/main/java/de/kuschku/malheur/CrashHandler.kt @@ -60,9 +60,9 @@ object CrashHandler { crashFile.writeText(json) Log.e("Malheur", "Crash report saved: $crashFile", throwable) handler.post { - Toast.makeText(application, - "Crash report saved: ${crashFile.name}", - Toast.LENGTH_LONG).show() + Toast.makeText( + application, "Crash report saved: ${crashFile.name}", Toast.LENGTH_LONG + ).show() } } catch (e: Throwable) { e.printStackTrace()