Skip to content

Commit

Permalink
Improve icon loading error handling [ci skip]
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed May 16, 2024
1 parent 0ea09cc commit c72e16f
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,13 @@ class ConsoleRunner implements ConsoleExtension {
taskbar.setIconImage(image)
}
catch (final UnsupportedOperationException e) {
log.debug("The os does not support: 'taskbar.setIconImage'")
log.debug("Unable to config console icons [1] - cause: ${e.message}")
}
catch (final SecurityException e) {
log.debug("There was a security exception for: 'taskbar.setIconImage'")
log.debug("Unable to config console icons [2] - cause: ${e.message}")
}
catch (Throwable e) {
log.debug("Unable to configure console icon [3]", e)
}
}

Expand Down

0 comments on commit c72e16f

Please sign in to comment.