Skip to content

Commit 08df45d

Browse files
toptalosindresorhus
authored andcommitted
Improve Sass error output (#296)
1 parent e23334c commit 08df45d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tasks/sass.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ module.exports = grunt => {
3636
grunt.file.write(filePath, result.map);
3737
}
3838
}));
39-
})().catch(grunt.fatal).then(done);
39+
})().catch(error => {
40+
grunt.fatal(error.formatted || error);
41+
}).then(done);
4042
});
4143
};

0 commit comments

Comments
 (0)