Merge pull request #3101 from Gared/fix_crash_on_invalid_export

Fixed crash on invalid export url
This commit is contained in:
Stefan 2016-12-23 21:14:56 +01:00 committed by GitHub
commit b8a4648d6d

View file

@ -78,8 +78,9 @@ exports.doExport = function(req, res, padId, type)
{ {
exporttxt.getPadTXTDocument(padId, req.params.rev, function(err, txt) exporttxt.getPadTXTDocument(padId, req.params.rev, function(err, txt)
{ {
if(ERR(err)) return; if(!err) {
res.send(txt); res.send(txt);
}
}); });
} }
else else