missed an error check