Skip to content

Commit c72e16f

Browse files
committed
Improve icon loading error handling [ci skip]
Signed-off-by: Paolo Di Tommaso <[email protected]>
1 parent 0ea09cc commit c72e16f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugins/nf-console/src/main/nextflow/ui/console/ConsoleRunner.groovy

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,13 @@ class ConsoleRunner implements ConsoleExtension {
7979
taskbar.setIconImage(image)
8080
}
8181
catch (final UnsupportedOperationException e) {
82-
log.debug("The os does not support: 'taskbar.setIconImage'")
82+
log.debug("Unable to config console icons [1] - cause: ${e.message}")
8383
}
8484
catch (final SecurityException e) {
85-
log.debug("There was a security exception for: 'taskbar.setIconImage'")
85+
log.debug("Unable to config console icons [2] - cause: ${e.message}")
86+
}
87+
catch (Throwable e) {
88+
log.debug("Unable to configure console icon [3]", e)
8689
}
8790
}
8891

0 commit comments

Comments
 (0)