Fixed crash on invalid export url
This commit is contained in:
parent
efb25f417a
commit
be9ff4a0de
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue