mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04: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);
|
// console.log("export handled by plugin", destFile);
|
||||||
} else {
|
} else {
|
||||||
// @TODO no Promise interface for convertors (yet)
|
// @TODO no Promise interface for convertors (yet)
|
||||||
await new Promise((resolve, reject) => {
|
await util.promisify(convertor.convertFile)(srcFile, destFile, type);
|
||||||
convertor.convertFile(srcFile, destFile, type, (err) => {
|
|
||||||
err ? reject(new Error('convertFailed')) : resolve();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// send the file
|
// send the file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue