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.

i edited this github, so the formatting is a little screwed up.