fix(pre): improved logging

This commit is contained in:
Christoph Witzko 2015-05-15 19:41:27 +02:00
parent 1f70215ffe
commit 7ba1cb956f

View File

@ -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)
})
}))