Skip to content

Commit

Permalink
Show runtime node version when exit
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangciwu committed Apr 1, 2020
1 parent 6d37fb1 commit 3bc02e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ const pkg = require('../package.json')
// Node version isn't supported, skip
pleaseUpgradeNode(pkg, {
message(requiredVersion) {
return 'Husky requires Node ' + requiredVersion + ", can't run Git hook."
return 'Husky requires Node ' +
requiredVersion +
' (runtime: ' + process.version + ')' +
", can't run Git hook."
}
})

Expand Down

0 comments on commit 3bc02e7

Please sign in to comment.