Author: allison
Date: Fri Oct  5 21:00:58 2007
New Revision: 21907

Modified:
   branches/pdd15oo/src/pmc/class.pmc

Log:
[pdd15oo] More helpful error message when adding duplicate methods.


Modified: branches/pdd15oo/src/pmc/class.pmc
==============================================================================
--- branches/pdd15oo/src/pmc/class.pmc  (original)
+++ branches/pdd15oo/src/pmc/class.pmc  Fri Oct  5 21:00:58 2007
@@ -725,7 +725,9 @@
         if (VTABLE_exists_keyed_str(interp, _class->methods, name)) {
             /* RT46095 Need to handle multi methods here. */
             real_exception(interp, NULL, E_NotImplementedError,
-                "A method of this name already exists. It may have been 
supplied by a role.");
+                "A method named '%S' already exists in class '%S'. "
+                "It may have been supplied by a role.",
+                name, VTABLE_get_string(interp, SELF));
         }
 
         /* Enter it into the table. */

Reply via email to