Permalink
Browse files

show error instead of exit code if error info available - re: issue #1

  • Loading branch information...
1 parent e3f5244 commit b9e959b0328f085f2a92812454b0e751f592b3de @garann committed Sep 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 pandoc.js
View
@@ -25,7 +25,7 @@ function pdc(src, from, to, opt, cb) {
});
pandoc.on('exit', function (code) {
- if (code != 0)
+ if (code != 0 && !err)
return cb(new Error('pandoc exited with code '+code+'.'));
if (error)
return cb(new Error(error));

0 comments on commit b9e959b

Please sign in to comment.