We should check the error code and domain here too.