mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-09 13:36:29 +00:00
refactor: log full error stack on error (#316)
This commit is contained in:
parent
c8fdc639e6
commit
097f741c79
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ function checkContributors(argv) {
|
||||||
|
|
||||||
function onError(error) {
|
function onError(error) {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error.message)
|
console.error(error.stack || error.message || error)
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
|
|
Loading…
Reference in a new issue