Skip to content

Commit

Permalink
Catch error instead of exception in longrunning task (#1655)
Browse files Browse the repository at this point in the history
* Catch Error instead of Exception when calling long running task

* horrible bug
  • Loading branch information
lbergelson authored Feb 12, 2025
1 parent 620cf91 commit 3c45e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/broad/igv/util/LongRunningTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public Void call() {
CursorToken token = WaitCursorManager.showWaitCursor();
try {
runnable.run();
} catch (Exception e) {
} catch (Throwable e) {
MessageUtils.showMessage("<html>Unexpected error: " + e.getMessage() + ".<br>See igv.log for more details");
log.error("Exception running task", e);
} finally {
Expand Down

0 comments on commit 3c45e56

Please sign in to comment.