evantahler/actionhero — pull request #444 by evantahler (2014-08-04 21:55:49+00:00)
Title: error_updates

Update the error reporter to provide more details to any `api.exceptionHandlers.reporters`. Reporters now will receive `(err, type, name, objects, severity)`.

- `err` is the error object (which you can extract `err.stack` from)
- `type` is the type of method which crashed ('action', 'task', etc)
- `name` will be a human-readable name, IE: `action:randomNumber`
- `objects` is a hash which contains the relevant objects.
- for an action, it will be `{connection: connection}`
- for a task, it will be `{task: task, queue: queue}`
- `severity` will be a logger severity level, like "error" or "alert".