improve status 500 for canvas-note api/image.js

This commit is contained in:
Tom 2022-04-11 21:38:22 +02:00
parent e365521d5e
commit e156c6292b

View File

@ -45,7 +45,7 @@ function returnImage(req, res) {
res.send(svgHtml); res.send(svgHtml);
}); });
} catch(err) { } catch(err) {
res.sendStatus(500); res.status(500).send("there was an error parsing excalidraw to svg");
} }
} else { } else {
res.set('Content-Type', image.mime); res.set('Content-Type', image.mime);