mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Handle preprocess image error
This commit is contained in:
parent
aaf034bfbc
commit
1a4f3950e6
1 changed files with 4 additions and 0 deletions
4
app.js
4
app.js
|
@ -493,6 +493,10 @@ app.post('/uploadimage', function (req, res) {
|
|||
logger.error(err);
|
||||
return res.status(500).end('upload image error');
|
||||
}
|
||||
|
||||
}).catch((err) => {
|
||||
logger.error(err);
|
||||
return res.status(500).end('process image error');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue