txlyre 1 天之前
父节点
当前提交
9cc0f4dd81
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      qirt.c

+ 2 - 2
qirt.c

@@ -1582,7 +1582,7 @@ qi_value_t *qi_del(qi_state_t *state, qi_value_t *value, qi_value_t *index) {
   }
 
 leave:
-  qi_throw_format(state, "cannot index %s with %s", _qi_type(state, value),
+  qi_throw_format(state, "cannot delete index %s with %s", _qi_type(state, value),
                   _qi_type(state, index));
 
   return NULL;
@@ -2100,7 +2100,7 @@ qi_value_t *qi_index_set(qi_state_t *state, bool is_pf, qi_value_t *value,
   }
 
 leave:
-  qi_throw_format(state, "cannot index %s with %s", _qi_type(state, value),
+  qi_throw_format(state, "cannot set index %s with %s", _qi_type(state, value),
                   _qi_type(state, index));
 
   return NULL;