diff --git a/index.js b/index.js index 6c1ffe8..9d40746 100644 --- a/index.js +++ b/index.js @@ -34,7 +34,7 @@ module.exports = (options, callback) => { new CleanCSS(_options).minify(content, (errors, css) => { if (errors) { - return cb(errors.join(' ')); + return cb(new Error(errors.join(' '))); } let details = {