mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Abiword: Fix logging of conversion failure
This commit is contained in:
parent
f015f59cfc
commit
8d32463915
1 changed files with 2 additions and 5 deletions
|
@ -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);
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue