Pass on correct error object.