ErrorActivity: Catch exceptions not throwables

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta 2026-02-11 18:41:10 +08:00
parent d7a4435e94
commit 8968aab578

View File

@ -198,8 +198,8 @@ class ErrorActivity : AppCompatActivity() {
.value("user_comment", binding.errorCommentBox.getText().toString())
.end()
.done()
} catch (error: Throwable) {
Log.e(TAG, "Error while erroring: Could not build json", error)
} catch (exception: Exception) {
Log.e(TAG, "Error while erroring: Could not build json", exception)
}
return ""
@ -253,8 +253,8 @@ class ErrorActivity : AppCompatActivity() {
}
append("<hr>\n")
}
} catch (error: Throwable) {
Log.e(TAG, "Error while erroring: Could not build markdown", error)
} catch (exception: Exception) {
Log.e(TAG, "Error while erroring: Could not build markdown", exception)
return ""
}
}