Skip to content

Commit

Permalink
Stopped us from rendering no html when error occurs
Browse files Browse the repository at this point in the history
no-issue

We need to make sure that we return, otherwise we'll end up skipping the
error handler middleware and trying to render.
  • Loading branch information
allouis authored and royalfig committed Mar 25, 2024
1 parent d573e9c commit e326f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ghost/core/core/frontend/services/rendering/renderer.js
Expand Up @@ -41,7 +41,7 @@ module.exports = function renderer(req, res, data) {
})
);
}
req.next(err);
return req.next(err);
}
res.send(html);
});
Expand Down

0 comments on commit e326f30

Please sign in to comment.