diff --git a/src/main/java/manifold/ij/util/SlowOperationsUtil.java b/src/main/java/manifold/ij/util/SlowOperationsUtil.java index 1ddb752..c844c17 100644 --- a/src/main/java/manifold/ij/util/SlowOperationsUtil.java +++ b/src/main/java/manifold/ij/util/SlowOperationsUtil.java @@ -21,6 +21,7 @@ import com.intellij.openapi.application.AccessToken; import com.intellij.util.SlowOperations; +import manifold.util.ManExceptionUtil; import java.util.concurrent.Callable; @@ -39,7 +40,8 @@ public static T allowSlowOperation( String tag, Callable operation ) } catch( Exception e ) { - throw new RuntimeException( e ); + // must not wrap in RuntimeException e.g., ProcessCanceledException must flow through for handling by IJ + throw ManExceptionUtil.unchecked( e ); } } }