Работа над конвертером Pdf

This commit is contained in:
Book Pauk
2020-12-13 21:54:03 +07:00
parent b2ca84bb7e
commit 3137b86cee
2 changed files with 33 additions and 18 deletions

View File

@@ -70,6 +70,7 @@ class ConvertBase {
const error = `${result.code}|FORLOG|, exec: ${path}, args: ${args.join(' ')}, stdout: ${result.stdout}, stderr: ${result.stderr}`;
throw new Error(`Внешний конвертер завершился с ошибкой: ${error}`);
}
return result;
} catch(e) {
if (e.status == 'killed') {
throw new Error('Слишком долгое ожидание конвертера');