Skip to content

Commit

Permalink
Show runtime node version when exit (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangciwu authored Apr 2, 2020
1 parent 1bddecd commit 8bb9911
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ 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
1 change: 1 addition & 0 deletions husky.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pleaseUpgradeNode(pkg, {
return (
'Husky requires Node ' +
requiredVersion +
' (runtime: ' + process.version + ')' +
', skipping Git hooks installation.'
)
}
Expand Down

0 comments on commit 8bb9911

Please sign in to comment.