fix bugs
This commit is contained in:
parent
541d5f104c
commit
d9dc205593
@ -20,10 +20,11 @@ function pandocProcess(pandocPath, args, timeout, filePath, input) {
|
|||||||
return result.stdout;
|
return result.stdout;
|
||||||
}
|
}
|
||||||
if (result.error) {
|
if (result.error) {
|
||||||
printMessage('ERROR', filePath, result.error);
|
printMessage('ERROR', filePath, result.error.toString());
|
||||||
throw result.error;
|
throw result.error;
|
||||||
}
|
}
|
||||||
printMessage('ERROR', filePath, 'pandoc exited with code ' + result.status + (result.stderr ? ': ' + result.stderr : '.'));
|
const error_msg = 'pandoc exited with code ' + result.status + (result.stderr ? ': ' + result.stderr : '.');
|
||||||
|
printMessage('ERROR', filePath, error_msg);
|
||||||
throw Error(error_msg);
|
throw Error(error_msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user