16 Commits

Author SHA1 Message Date
Matthew O'Riordan
52fa78aa31 API middleware adding req.isApi 2013-05-19 16:36:03 +02:00
Matthew O'Riordan
7c8d63aa78 Send JSON response for API errors 2013-05-19 14:35:17 +02:00
Tom Ashworth
8323a7f65f Use the root URL on the 404 page, fix #442 2013-01-04 09:38:26 +00:00
Aron Carroll
ad4a496525 Add helpers.urlForStatic() to get an asset url 2012-09-09 21:15:03 +01:00
Aron Carroll
61618e7f10 Uncomment debug code and lint the node code 2012-08-03 15:37:25 +01:00
Aron Carroll
d9c2cd4a83 Lint the node source 2012-08-03 13:04:48 +01:00
Remy Sharp
141e9c91e9 Only hash the stack, not the entire body 2012-07-30 22:24:19 +01:00
Remy Sharp
8eb7f644a7 Cleaned headers for error email. 2012-07-27 14:07:53 +01:00
Remy Sharp
2faf997cfa Upgrade error reporting to include headers and hash the subject 2012-07-27 14:00:19 +01:00
Aron Carroll
9f64efb651 Fix undefined error in the notFound() handler 2012-07-24 08:41:34 +01:00
Aron Carroll
bf76b8a246 Clean up error handling code
* Handle error status codes being passed to next().
 * Create renderPage() functions in the error handler.
 * Try and always show a nice error page.
 * Distinguish between bin not found and other generic 404's.
2012-07-23 23:07:50 +01:00
Aron Carroll
92b04334b1 Improve error handling
Don't throw a 500 if express creates a 4xx error
2012-07-22 16:32:39 +01:00
Remy Sharp
c02a05af1d Error page points to static version of Dave 2012-07-20 16:23:31 +01:00
Aron Carroll
72b7cd57c1 Added a fallback 404 page 2012-07-13 17:30:38 +01:00
Aron Carroll
545572c708 Now sending a simple error report when JSBin crashes #213
This can be enabled by adding a "notify" key to your config file:

  "notify": {
    "errors": ["John Doe <john@example.com>"]
  }

This can contain one or more email addresses. They will be sent an email with
the url, stack trace and other request information.
2012-07-13 15:17:55 +01:00
Aron Carroll
e7a3128f39 Add a 500 page and an ErrorHandler object
This should display a friendlier error page when in production based on
the lovely JSBin welcome page.
2012-07-13 14:40:59 +01:00