Skip to content

Commit

Permalink
fix: process.exit(0) for version and help commands. fixes dat-ecosyst…
Browse files Browse the repository at this point in the history
  • Loading branch information
okdistribute committed Mar 27, 2020
1 parent 01732ec commit df19879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,5 @@ function exitInvalidNode () {
console.error('Node Version:', process.version)
console.error('Unfortunately, we only support Node >= v4. Please upgrade to use Dat.')
console.error('You can find the latest version at https://nodejs.org/')
process.exit(1)
process.exit(0)
}
2 changes: 1 addition & 1 deletion src/usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ Troubleshooting & Help:
console.error(usage)
}
console.error('Have fun using Dat! Learn more at docs.datproject.org')
process.exit(1)
process.exit(0)
}

0 comments on commit df19879

Please sign in to comment.