mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 02:46:15 -04:00
callback to stop further processing in async.series
This commit is contained in:
parent
bf92ba0f9d
commit
4e21c16794
1 changed files with 3 additions and 5 deletions
|
@ -79,8 +79,7 @@ exports.doExport = function(req, res, padId, type)
|
|||
exporttxt.getPadTXTDocument(padId, req.params.rev, false, function(err, txt)
|
||||
{
|
||||
if (err) {
|
||||
res.status(400);
|
||||
res.send();
|
||||
res.status(400).send();
|
||||
console.warn("Could not process export request:",err.message);
|
||||
} else {
|
||||
res.send(txt);
|
||||
|
@ -100,10 +99,9 @@ exports.doExport = function(req, res, padId, type)
|
|||
exporthtml.getPadHTMLDocument(padId, req.params.rev, false, function(err, _html)
|
||||
{
|
||||
if (err) {
|
||||
res.status(400);
|
||||
res.send();
|
||||
res.status(400).send();
|
||||
console.warn("Could not process export request:",err.message);
|
||||
return;
|
||||
return callback("stop");
|
||||
}
|
||||
html = _html;
|
||||
callback();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue