Command error checking