report cause of library error if provided

This commit is contained in:
Jonathan Shook 2020-12-21 14:10:34 -06:00
parent f22f75cfc3
commit b0daae5dac

View File

@ -47,7 +47,10 @@ public class ScenarioErrorHandler {
}
if (wantsStackTraces) {
logger.error(prefix + e.getMessage(),e);
logger.error(prefix + e.getMessage(), e);
if (e.getCause() != null) {
logger.error("cause (see stack trace for details):" + e.getCause().getMessage());
}
} else {
logger.error(e.getMessage());
logger.error("for the full stack trace, run with --show-stacktraces");