This commit is contained in:
18218461270@163.com 2025-08-20 20:04:24 +08:00
parent 541d5f104c
commit d9dc205593

View File

@ -20,10 +20,11 @@ function pandocProcess(pandocPath, args, timeout, filePath, input) {
return result.stdout;
}
if (result.error) {
printMessage('ERROR', filePath, result.error);
printMessage('ERROR', filePath, result.error.toString());
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);
}