Skip to content

Commit

Permalink
Add cause information in case of InvocationTargetException | IllegalA…
Browse files Browse the repository at this point in the history
…ccessException happened in LoggedRunnable (eclipse-che#11602)
  • Loading branch information
skabashnyuk authored and nickboldt committed Oct 15, 2018
1 parent 96854f0 commit f0a493d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -63,11 +63,11 @@ public void run() {
object,
TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis() - startTime));
} catch (InvocationTargetException | IllegalAccessException e) {
LOG.error(e.getLocalizedMessage());
LOG.error(e.getMessage(), e);
}
}
} catch (Exception e) {
LOG.error(e.getLocalizedMessage(), e);
LOG.error(e.getMessage(), e);
throw e;
}
}
Expand Down

0 comments on commit f0a493d

Please sign in to comment.