Skip to content

Commit

Permalink
To avoid an error being displayed in the express sample when the prov…
Browse files Browse the repository at this point in the history
…ider is offline
  • Loading branch information
TheRealAgentK committed Oct 22, 2024
1 parent a24540f commit a74d799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/express-sample/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ router.get("/send", function (req, res, next) {
.then((message) => {
res.render("send", {
title: "Sent custom error to Raygun",
body: `Raygun status code: ${message.statusCode}`,
body: `Raygun status code: ${message?.statusCode}`,
});
})
.catch((error) => {
Expand Down

0 comments on commit a74d799

Please sign in to comment.