does it make sense to pass resolve, to the error callback?