Attach command_obj to return error