fix: catch Throwable instead of Exception

This commit is contained in:
Canny 2022-12-19 17:04:05 +03:00 committed by GitHub
parent 24a5d4b8be
commit 9a8beed412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,7 @@ class PatcherWorker(
log("Successfully patched!", SUCCESS)
Result.success(Data.Builder().putString(OUTPUT, finalFile.absolutePath).build())
} catch (e: Exception) {
} catch (e: Throwable) {
log("Error while patching: ${e::class.simpleName}: ${e.message}", ERROR)
Log.e(tag, e.stackTraceToString())
Sentry.captureException(e)
@ -236,4 +236,4 @@ class PatcherWorker(
const val ERROR = 1
const val SUCCESS = 2
}
}
}