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) => {
|
soffice.on('exit', (code) => {
|
||||||
clearTimeout(hangTimeout);
|
clearTimeout(hangTimeout);
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
return reject(
|
const err =
|
||||||
new Error(`LibreOffice died with exit code ${code} and message: ${stdoutBuffer}`));
|
new Error(`LibreOffice died with exit code ${code} and message: ${stdoutBuffer}`);
|
||||||
|
libreOfficeLogger.error(err.stack);
|
||||||
|
return reject(err);
|
||||||
}
|
}
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue