ErrorActivity: Catch exceptions not throwables
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
parent
d7a4435e94
commit
8968aab578
1 changed files with 4 additions and 4 deletions
|
|
@ -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 ""
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue