mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
ExportHandler: Pass the error unmodified
This commit is contained in:
parent
216aecd433
commit
50fdadab7d
1 changed files with 1 additions and 5 deletions
|
@ -100,11 +100,7 @@ exports.doExport = async (req, res, padId, readOnlyId, type) => {
|
|||
// console.log("export handled by plugin", destFile);
|
||||
} else {
|
||||
// @TODO no Promise interface for convertors (yet)
|
||||
await new Promise((resolve, reject) => {
|
||||
convertor.convertFile(srcFile, destFile, type, (err) => {
|
||||
err ? reject(new Error('convertFailed')) : resolve();
|
||||
});
|
||||
});
|
||||
await util.promisify(convertor.convertFile)(srcFile, destFile, type);
|
||||
}
|
||||
|
||||
// send the file
|
||||
|
|
Loading…
Reference in a new issue