Check if `error` isn't null, usually if there's an &error parameter you're allowed not to set it.