mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-08 13:46:10 +02:00
LibreOffice: Log conversion errors
This commit is contained in:
parent
b2c0837cf5
commit
b4e1e935e2
@ -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…
x
Reference in New Issue
Block a user