Skip to content

Commit

Permalink
error handling in error handler :/
Browse files Browse the repository at this point in the history
  • Loading branch information
janoside committed Nov 18, 2024
1 parent 0706dd5 commit 209b2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/baseRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 209b2c2

Please sign in to comment.