Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
Fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Mar 27, 2019
1 parent 1b18598 commit 93ccef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const dest = path.resolve(process.cwd(), destArg)

zipIt.zipFunctions(source, dest).then(console.log).catch(err => {
const errObj = {
err
error: err.toString()
}
console.error(JSON.stringify(errObj, null, ' '))
process.exit(1)
Expand Down

0 comments on commit 93ccef0

Please sign in to comment.