Emit error event when error is passed to callback.
Merge pull request #1 from mapbox/error

Emit error event when error is passed to callback.