mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
import/export: Use Error objects for errors, not strings
This commit is contained in:
parent
59c167e31b
commit
216aecd433
3 changed files with 6 additions and 7 deletions
|
@ -59,7 +59,8 @@ const doConvertTask = (task, callback) => {
|
|||
soffice.on('exit', (code) => {
|
||||
clearTimeout(hangTimeout);
|
||||
if (code !== 0) {
|
||||
return callback(`LibreOffice died with exit code ${code} and message: ${stdoutBuffer}`);
|
||||
return callback(
|
||||
new Error(`LibreOffice died with exit code ${code} and message: ${stdoutBuffer}`));
|
||||
}
|
||||
callback();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue