From e156c6292b501237886cd427cf5d6cda73d8da58 Mon Sep 17 00:00:00 2001 From: Tom <7283497+thfrei@users.noreply.github.com> Date: Mon, 11 Apr 2022 21:38:22 +0200 Subject: [PATCH] improve status 500 for canvas-note api/image.js --- src/routes/api/image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api/image.js b/src/routes/api/image.js index 8981c316a..bf4e18a1e 100644 --- a/src/routes/api/image.js +++ b/src/routes/api/image.js @@ -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);