mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
LibreOffice: Log conversion errors
This commit is contained in:
parent
b2c0837cf5
commit
b4e1e935e2
1 changed files with 4 additions and 2 deletions
|
@ -57,8 +57,10 @@ const doConvertTask = async (task) => {
|
|||
soffice.on('exit', (code) => {
|
||||
clearTimeout(hangTimeout);
|
||||
if (code !== 0) {
|
||||
return reject(
|
||||
new Error(`LibreOffice died with exit code ${code} and message: ${stdoutBuffer}`));
|
||||
const err =
|
||||
new Error(`LibreOffice died with exit code ${code} and message: ${stdoutBuffer}`);
|
||||
libreOfficeLogger.error(err.stack);
|
||||
return reject(err);
|
||||
}
|
||||
resolve();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue