Skip to content

Commit

Permalink
Improve Sass error output (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
toptalo authored and sindresorhus committed Aug 14, 2019
1 parent e23334c commit 08df45d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tasks/sass.js
Expand Up @@ -36,6 +36,8 @@ module.exports = grunt => {
grunt.file.write(filePath, result.map);
}
}));
})().catch(grunt.fatal).then(done);
})().catch(error => {
grunt.fatal(error.formatted || error);
}).then(done);
});
};

0 comments on commit 08df45d

Please sign in to comment.