diff --git a/tasks/svg2png.js b/tasks/svg2png.js index a0966b1..2c81bbb 100644 --- a/tasks/svg2png.js +++ b/tasks/svg2png.js @@ -116,7 +116,17 @@ module.exports = function(grunt) completed++; update(); } - } catch (e) { } + } catch (e) { + grunt.log.write("\n"); + grunt.log.error(e); + done(new Error("Rasterization failed!")); + } + }); + + spawn.stderr.on('data', function (buffer) { + grunt.log.write("\n"); + grunt.log.error(buffer); + done(new Error("Rasterization failed!")); }); spawn.on('exit', function()