mirror of
https://github.com/revanced/revanced-manager-compose-old.git
synced 2025-05-01 15:04:26 +02:00
fix: catch Throwable instead of Exception
This commit is contained in:
parent
24a5d4b8be
commit
9a8beed412
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user