ErrorActivity: Catch exceptions not throwables
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
parent
4c8c110995
commit
1708e99e75
1 changed files with 4 additions and 4 deletions
|
|
@ -198,8 +198,8 @@ class ErrorActivity : AppCompatActivity() {
|
||||||
.value("user_comment", binding.errorCommentBox.getText().toString())
|
.value("user_comment", binding.errorCommentBox.getText().toString())
|
||||||
.end()
|
.end()
|
||||||
.done()
|
.done()
|
||||||
} catch (error: Throwable) {
|
} catch (exception: Exception) {
|
||||||
Log.e(TAG, "Error while erroring: Could not build json", error)
|
Log.e(TAG, "Error while erroring: Could not build json", exception)
|
||||||
}
|
}
|
||||||
|
|
||||||
return ""
|
return ""
|
||||||
|
|
@ -253,8 +253,8 @@ class ErrorActivity : AppCompatActivity() {
|
||||||
}
|
}
|
||||||
append("<hr>\n")
|
append("<hr>\n")
|
||||||
}
|
}
|
||||||
} catch (error: Throwable) {
|
} catch (exception: Exception) {
|
||||||
Log.e(TAG, "Error while erroring: Could not build markdown", error)
|
Log.e(TAG, "Error while erroring: Could not build markdown", exception)
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue