Eo: Improve error message when overriding functions.
authorTom Hacohen <tom@stosb.com>
Thu, 19 May 2016 10:27:41 +0000 (11:27 +0100)
committerTom Hacohen <tom@stosb.com>
Fri, 20 May 2016 09:25:00 +0000 (10:25 +0100)
src/lib/eo/eo.c
src/tests/eo/suite/eo_test_class_errors.c

index 48669a7..08de539 100644 (file)
@@ -140,7 +140,7 @@ _vtable_func_set(_Eo_Class *klass, Eo_Op op, eo_op_func_type func)
    if (fsrc->src == klass)
      {
         const _Eo_Class *op_kls = _eo_op_class_get(op);
-        ERR("Class '%s': Overriding func %p for op %d (%s) with %p.",
+        ERR("Class '%s': Overriding already set func %p for op %d (%s) with %p.",
               klass->desc->name, fsrc->func, op, op_kls->desc->name, func);
         return EINA_FALSE;
      }
index 8155c5d..276c6d7 100644 (file)
@@ -329,7 +329,7 @@ START_TEST(eo_dich_func_override)
         NULL
    };
 
-   TEST_EO_ERROR("_vtable_func_set", "Class '%s': Overriding func %p for op %d (%s) with %p.");
+   TEST_EO_ERROR("_vtable_func_set", "Class '%s': Overriding already set func %p for op %d (%s) with %p.");
    klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL);
    fail_if(klass);
    fail_unless(ctx.did);