Abiword: Fix logging of conversion failure

This commit is contained in:
Richard Hansen 2021-03-17 19:09:53 -04:00 committed by John McLear
parent f015f59cfc
commit 8d32463915

View file

@ -81,11 +81,8 @@ if (os.type().indexOf('Windows') > -1) {
abiword.stdin.write(`convert ${task.srcFile} ${task.destFile} ${task.type}\n`);
stdoutCallback = (err) => {
callback();
try {
task.callback(err);
} catch (e) {
console.error('Abiword File failed to convert', e);
}
if (err != null) console.error('Abiword File failed to convert', err);
task.callback(err);
};
};