We discussed this briefly in a commit in dev-time-cli
.
At the moment, when an error occurs and it is not handled by the developer, the entire error stack is shown.
devTime(cli.input[0], cli.flags).then(result => {
console.log(time);
});
$ dev-time 0
TypeError: Expected a user
at module.exports (/Users/sam/Projects/opensource/dev-time-cli/node_modules/dev-time/index.js:59:25)
at Object.<anonymous> (/Users/sam/Projects/opensource/dev-time-cli/cli.js:41:1)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:134:18)
at node.js:961:3
This was before I disabled argument type parsing
When an error occurs, you got that "ugly" error string representation with the entire stacktrace. While this is very usefully, especially for debugging and reporting issues, it's not that user friendly.
Show a nice and clean error message. Something like pageres
(but instead logSymbols.error
).
If you want the entire stack trace, use the --verbose
(or -v
) flag.
Feedback and opinions more then welcome.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too