Skip to content

Commit 84182e5

Browse files
forgor a brace💀
1 parent 19b9756 commit 84182e5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • app/src/main/kotlin/io/github/landwarderer/futon/core/util/ext

‎app/src/main/kotlin/io/github/landwarderer/futon/core/util/ext/Throwable.kt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,16 @@ fun Throwable.isNetworkError(): Boolean {
233233
}
234234

235235
fun Throwable.report(silent: Boolean = false) {
236-
val exception = CaughtException(this)
236+
val exception = CaughtException(this)
237237
// ACRA removed: use logging as a placeholder for crash reporting
238238
if (!silent) {
239239
exception.printStackTrace()
240240
Log.e("Futon", "Exception reported", exception)
241241
} else if (!BuildConfig.DEBUG) {
242242
exception.printStackTrace()
243243
Log.w("Futon", "Silent exception reported", exception)
244+
}
245+
}
244246

245247
fun Throwable.isWebViewUnavailable(): Boolean {
246248
val trace = stackTraceToString()

0 commit comments

Comments
 (0)