Skip to content

Commit

Permalink
fix(pre): improved logging
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed May 15, 2015
1 parent 1f70215 commit 7ba1cb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pre.js
Expand Up @@ -51,9 +51,11 @@ module.exports = function (options, plugins, cb) {

var verification = require(opts.name)

console.log('Running verification hook...')

verification(opts, function (error, ok) {
if (!error && ok) return writePkg()
console.log(error || 'Verification failed')
console.log('Verification failed' + (error ? ': ' + error : ''))
process.exit(1)
})
}))
Expand Down

0 comments on commit 7ba1cb9

Please sign in to comment.