From 209b2c2f07865c415584c4aabf41b56ecd959908 Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Mon, 18 Nov 2024 11:12:29 -0500 Subject: [PATCH] error handling in error handler :/ --- routes/baseRouter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/baseRouter.js b/routes/baseRouter.js index c6dcbe850..fde2c60a3 100644 --- a/routes/baseRouter.js +++ b/routes/baseRouter.js @@ -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));