From 7ba1cb956f2efc2cd7e34f36cb8358baa09191b0 Mon Sep 17 00:00:00 2001 From: Christoph Witzko Date: Fri, 15 May 2015 19:41:27 +0200 Subject: [PATCH] fix(pre): improved logging --- src/pre.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pre.js b/src/pre.js index 20faefc8..766523a9 100644 --- a/src/pre.js +++ b/src/pre.js @@ -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) }) }))