Do not we need to ensure the error object here?