pass context to errors

errors are kind of useless without the context. not sure if there's a better way to do this (i'm sure there is) since i've never listened to an error event with more than 1 argument.

use case: your logger wants to know the URL or the headers of the request that caused the error.

i edited this github, so the formatting is a little screwed up.