Returning promise on errorInterceptor

Fixes #528