Fix mess with canvas name for HSI

This commit is contained in:
2025-03-12 18:12:49 +01:00
parent dccec35f77
commit 00c72fd17b
3 changed files with 36 additions and 9 deletions

View File

@@ -31,7 +31,8 @@ router.get('/iiif/:manifestid/canvas/:name', async function(req, res) {
try {
canvas = await generateCanvas(req.params.manifestid, req.params.name)
} catch(error) {
res.status(500).json({status: 500, message: 'There was an error processing this request'});
res.status(500).json({status: 500, message: 'There was an error processing this request: ' + error});
return;
}
res.json(canvas);
});