Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async function main () {
if (res.parsed && res.parsed.argv.debug) {
console.error('\n', err)
} else {
console.error(err.message)
console.error(err)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (res.parsed && res.parsed.argv.debug) {
console.error('\n', err)
} else {
console.error(err.message)
console.error(err)
if (res.parsed && (res.parsed.argv.debug || process.env.DEBUG != null)) {
console.error('\n', err)
} else {
console.error(err.message)

}

process.exit(1)
Expand Down
Loading