Skip to content

Commit 4cbc505

Browse files
committed
Properly throw and catch installer errors to display
1 parent a002468 commit 4cbc505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/dev/zwander/installwithoptions/util/InternalInstaller.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ class InternalInstaller(private val context: Context) {
105105

106106
session?.commit(statusIntent.intentSender, false)
107107
} catch (e: Throwable) {
108-
e.printStackTrace()
109108
Log.e("InstallWithOptions", "error", e)
110109
session?.abandon()
110+
throw e
111111
}
112112
}
113113
}

0 commit comments

Comments
 (0)