diff --git a/src/node/utils/LibreOffice.js b/src/node/utils/LibreOffice.js index d30af5b22..5fcfa3acc 100644 --- a/src/node/utils/LibreOffice.js +++ b/src/node/utils/LibreOffice.js @@ -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(); });