Fixed crash on invalid export url

This commit is contained in:
Stefan 2016-12-22 23:04:06 +01:00
parent efb25f417a
commit be9ff4a0de
1 changed files with 3 additions and 2 deletions

View File

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