diff --git a/lib/index.js b/lib/index.js index 201ff818..ff429dc0 100644 --- a/lib/index.js +++ b/lib/index.js @@ -208,8 +208,8 @@ exports.publish = function publish(basePath, config, done) { error = new Error( 'Unspecified error (run without silent option for detail)'); } - done(error); - }); + throw error; + }).done(done); };