mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 01:18:44 +02:00
improve status 500 for canvas-note api/image.js
This commit is contained in:
parent
e365521d5e
commit
e156c6292b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user