error handling in error handler :/

This commit is contained in:
Dan Janosik 2024-11-18 11:12:29 -05:00
parent 0706dd5050
commit 209b2c2f07
No known key found for this signature in database
GPG key ID: 70C0B166321C0AF8

View file

@ -1113,7 +1113,7 @@ router.get("/block-height/:blockHeight", asyncHandler(async (req, res, next) =>
next();
} catch (err) {
res.locals.userMessageMarkdown = `Failed loading block: height=**${blockHeight}**`;
res.locals.userMessageMarkdown = `Failed loading block: height=**${req.params.blockHeight}**`;
res.locals.pageErrors.push(utils.logError("389wer07eghdd", err));