mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
improve status 500 for canvas-note api/image.js
This commit is contained in:
@@ -45,7 +45,7 @@ function returnImage(req, res) {
|
||||
res.send(svgHtml);
|
||||
});
|
||||
} catch(err) {
|
||||
res.sendStatus(500);
|
||||
res.status(500).send("there was an error parsing excalidraw to svg");
|
||||
}
|
||||
} else {
|
||||
res.set('Content-Type', image.mime);
|
||||
|
||||
Reference in New Issue
Block a user