From 08df45dd3543540b2be31a2beff2de3f0b5175d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D0=BA=D1=82=D0=BE=D1=80=20=D0=92=D0=B8=D0=BA?= =?UTF-8?q?=D1=82=D0=BE=D1=80?= Date: Wed, 14 Aug 2019 14:39:15 +0300 Subject: [PATCH] Improve Sass error output (#296) --- tasks/sass.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/sass.js b/tasks/sass.js index 045dce0..a883803 100644 --- a/tasks/sass.js +++ b/tasks/sass.js @@ -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); }); };