Skip to content

Commit a087045

Browse files
authored
Update README.md
1 parent bd681a0 commit a087045

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ Once your Express application is deployed, it is important to get notified of an
2323
// Some code that throws error
2424
} catch(e) {
2525
// This will fire a notification, as it has an erroneous 500 statusCode.
26-
res.status(500).json({ /* whatever */ });
26+
res.status(500).json(/* whatever */);
2727

2828
// If you want a custom error message in the notification, add the following:
2929
req.errorMessage = 'My custom error message';
3030
}
3131
});
3232

3333
```
34+
Voila, from now you get an instant notification to your Telegram, and immediately fix that bug :).

0 commit comments

Comments
 (0)