Skip to content
Snippets Groups Projects
Commit c88d7264 authored by dgelessus's avatar dgelessus
Browse files

Don't show full traceback when a command throws an unknown exception

The traceback is not useful for most users, and those who need it can
find it in the log.
parent ecbbbabe
Branches
No related tags found
No related merge requests found
...@@ -451,7 +451,7 @@ public final class ProBKernel extends BaseKernel { ...@@ -451,7 +451,7 @@ public final class ProBKernel extends BaseKernel {
} }
return out; return out;
} else { } else {
return super.formatError(e); return this.errorStyler.secondaryLines(e.toString());
} }
} catch (final RuntimeException e2) { } catch (final RuntimeException e2) {
LOGGER.error("Exception in error formatting", e2); LOGGER.error("Exception in error formatting", e2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment