Forgot an error check in the previous commit