From c81acce31c5719b01892ab04509dd644279e925d Mon Sep 17 00:00:00 2001 From: Ushie Date: Mon, 12 Dec 2022 17:03:00 +0300 Subject: [PATCH] feat: improve patch fail logging --- .../main/kotlin/app/revanced/manager/flutter/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/kotlin/app/revanced/manager/flutter/MainActivity.kt b/android/app/src/main/kotlin/app/revanced/manager/flutter/MainActivity.kt index 8ff71d9d..e3e2ba6f 100644 --- a/android/app/src/main/kotlin/app/revanced/manager/flutter/MainActivity.kt +++ b/android/app/src/main/kotlin/app/revanced/manager/flutter/MainActivity.kt @@ -196,7 +196,7 @@ class MainActivity : FlutterActivity() { } return@forEach } - val msg = "$patch failed.\nError:\n" + res.exceptionOrNull()!!.printStackTrace() + val msg = "Failed to apply $patch: " + "${res.exceptionOrNull()!!.message ?: res.exceptionOrNull()!!::class.simpleName}" handler.post { installerChannel.invokeMethod( "update",