Update parsers

This commit is contained in:
Koitharu
2022-10-01 13:55:33 +03:00
parent e00ed13ad1
commit 627a00beb4
6 changed files with 16 additions and 16 deletions

View File

@@ -54,7 +54,7 @@ class MangaErrorDialog : AlertDialogFragment<DialogMangaErrorBinding>() {
.setNegativeButton(android.R.string.cancel, null)
.setPositiveButton(R.string.report) { _, _ ->
dismiss()
error.report(TAG)
error.report()
}.setTitle(R.string.error_occurred)
}

View File

@@ -75,7 +75,7 @@ class ImportService : CoroutineIntentService() {
}
override fun onError(startId: Int, error: Throwable) {
error.report(null)
error.report()
}
private suspend fun importImpl(uri: Uri): Manga {

View File

@@ -405,7 +405,7 @@ class ReaderActivity :
if (ExceptionResolver.canResolve(exception)) {
tryResolve(exception)
} else {
exception.report("ReaderActivity::onError")
exception.report()
}
} else {
onCancel(dialog)

View File

@@ -59,8 +59,8 @@ fun Throwable.isReportable(): Boolean {
return this is Error || this.javaClass in reportableExceptions
}
fun Throwable.report(message: String?) {
val exception = CaughtException(this, message)
fun Throwable.report() {
val exception = CaughtException(this, "${javaClass.simpleName}($message)")
exception.sendWithAcra()
}