Skip to content

Commit

Permalink
better erorr logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bobjacobsen committed Sep 6, 2018
1 parent c78223d commit 86a9987
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions java/src/jmri/util/ThreadingUtil.java
Expand Up @@ -126,6 +126,7 @@ static public void runOnGUI(@Nonnull ThreadAction ta) {
Thread.currentThread().interrupt();
} catch (InvocationTargetException e) {
log.error("Error while on GUI thread", e.getCause());
log.error(" Came from call to runOnGUI:", e);
// should have been handled inside the ThreadAction
}
}
Expand Down Expand Up @@ -163,6 +164,7 @@ static public <E> E runOnGUIwithReturn(@Nonnull ReturningThreadAction<E> ta) {
Thread.currentThread().interrupt();
} catch (InvocationTargetException e) {
log.error("Error while on GUI thread", e.getCause());
log.error(" Came from call to runOnGUIwithReturn:", e);
// should have been handled inside the ThreadAction
}
return result.get();
Expand Down

0 comments on commit 86a9987

Please sign in to comment.