diff options
Diffstat (limited to 'lib/utils/images.js')
-rw-r--r-- | lib/utils/images.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/utils/images.js b/lib/utils/images.js index 8169b06..44356a1 100644 --- a/lib/utils/images.js +++ b/lib/utils/images.js @@ -10,7 +10,12 @@ function convertSVGToPNG(source, dest, options) { return command.spawn('svgexport', [source, dest]) .fail(function(err) { - if (err.code == 'ENOENT') err = new Error('Need to install "svgexport" using "npm install svgexport -g"'); + if (err.code == 'ENOENT') { + error.RequireInstallError({ + cmd: 'svgexport', + install: 'Install it using: "npm install svgexport -g"' + }); + } throw err; }) .then(function() { |