# Recover from server crash

**URL:** https://discourse.nodered.org/t/recover-from-server-crash/15132
**Category:** Core Development
**Created:** [5 September 2019 06:51 UTC](https://discourse.nodered.org/t/recover-from-server-crash/15132 "2019-09-05T06:51:07Z")
**Posts on this page:** 1
**Showing post:** 27

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [7 September 2019 15:49 UTC](https://discourse.nodered.org/t/recover-from-server-crash/15132/27 "2019-09-07T15:49:17Z")

</div>

> refreshing the page toked me to the browser's default page not found and that was it.

It _crashed_, thus there is no webserver anymore, it cannot tell you anything other than the last entry in the log.  
Certain "typo's" will crash programs, others won't, that is because it is not so simple to catch user errors.

For your specific example: you could (or should) have used a `try`, `catch` [block](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch), so that your code doesn't crash node-red.

---

_[View the full topic](https://discourse.nodered.org/t/recover-from-server-crash/15132)._
