command_error method