diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-28 14:54:29 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-28 14:54:29 +0100 |
commit | 592b32b0369327799fff109b08f914142831fc2e (patch) | |
tree | ca86b41465d5690fe680b5e02c6bab500ed67ab1 | |
parent | 12139973414b3cebce06a01fd9c6695fec648eff (diff) | |
download | gitbook-592b32b0369327799fff109b08f914142831fc2e.zip gitbook-592b32b0369327799fff109b08f914142831fc2e.tar.gz gitbook-592b32b0369327799fff109b08f914142831fc2e.tar.bz2 |
Fix error message when svgexport is not installed
-rw-r--r-- | lib/utils/images.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/images.js b/lib/utils/images.js index 0d37a0f..9a97f98 100644 --- a/lib/utils/images.js +++ b/lib/utils/images.js @@ -18,7 +18,7 @@ var convertSVGFile = function(source, dest, options) { var child = exec(command, function (error, stdout, stderr) { if (error) { - if (error.code == "ENOENT") error = new Error("Need to install 'svgexport' using 'npm install svgexport -g'"); + if (error.code == 127) error = new Error("Need to install 'svgexport' using 'npm install svgexport -g'"); return d.reject(error); } d.resolve(); |