fix: print patch failure reason

This commit is contained in:
Canny 2022-12-05 22:08:42 +03:00
parent 8adea8d0f1
commit f68a9b31a9
No known key found for this signature in database
GPG Key ID: 395CCB0AA979F27B

View File

@ -227,7 +227,8 @@ class PatchingScreenViewModel(
status = Status.Success status = Status.Success
} catch (e: Exception) { } catch (e: Exception) {
status = Status.Failure status = Status.Failure
Log.e(tag, "Error while patching: ${e.message ?: e::class.simpleName}") log(PatchLog.Error("Error while patching: ${e::class.simpleName}: ${e.message}"))
Log.e(tag, e.stackTraceToString())
Sentry.captureException(e) Sentry.captureException(e)
} }
Log.d(tag, "Deleting workdir") Log.d(tag, "Deleting workdir")