back

by layer8·5y ago·view on hn ↗
It would be great if there would be a way to interactively “expand” error messages on the command line, in the sense of progressive disclosure in GUIs. Meaning that you could for example have Help/Technical Details/Stacktrace buttons. Or you could interactively expand an error to -v or -vv verbosity level.

In logs this can be partially achieved by logging additional details with a low logging level. With errors coming from exceptions in particular, I like to log the error message (exception message) separately from the stack trace for that reason.