diff --git a/app/src/main/java/com/itsaky/androidide/actions/build/QuickRunWithCancellationAction.kt b/app/src/main/java/com/itsaky/androidide/actions/build/QuickRunWithCancellationAction.kt index b9a40f791f..a016adc8cb 100644 --- a/app/src/main/java/com/itsaky/androidide/actions/build/QuickRunWithCancellationAction.kt +++ b/app/src/main/java/com/itsaky/androidide/actions/build/QuickRunWithCancellationAction.kt @@ -162,6 +162,10 @@ class QuickRunWithCancellationAction(context: Context, override val order: Int) } handleResult(data, result, module, variant) + }.invokeOnCompletion { error -> + if (error != null) { + log.error("Failed to run '$taskName'", error) + } } }