[svn:parrot] r45358 - in trunk: src/ops t/pmc

moritz at svn.parrot.org moritz at svn.parrot.org
Wed Mar 31 17:24:27 UTC 2010


Author: moritz
Date: Wed Mar 31 17:24:26 2010
New Revision: 45358
URL: https://trac.parrot.org/parrot/changeset/45358

Log:
Remove the "non-existant" part of error messages for not finding a sub

The double negation is just confusing, and it's factually incorrect: the sub
might exist, just in a different scope.

Modified:
   trunk/src/ops/var.ops
   trunk/t/pmc/namespace-old.t

Modified: trunk/src/ops/var.ops
==============================================================================
--- trunk/src/ops/var.ops	Wed Mar 31 13:36:15 2010	(r45357)
+++ trunk/src/ops/var.ops	Wed Mar 31 17:24:26 2010	(r45358)
@@ -484,7 +484,7 @@
     if (PMC_IS_NULL(sub)) {
         opcode_t *handler = Parrot_ex_throw_from_op_args(interp, dest,
                        EXCEPTION_GLOBAL_NOT_FOUND,
-                       "Could not find non-existent sub %Ss", $2);
+                       "Could not find sub %Ss", $2);
         goto ADDRESS(handler);
     }
 

Modified: trunk/t/pmc/namespace-old.t
==============================================================================
--- trunk/t/pmc/namespace-old.t	Wed Mar 31 13:36:15 2010	(r45357)
+++ trunk/t/pmc/namespace-old.t	Wed Mar 31 17:24:26 2010	(r45358)
@@ -284,7 +284,7 @@
 CODE
 /^a_foo
 b_foo
-Could not find non-existent sub b_foo/
+Could not find sub b_foo/
 OUTPUT
 
 
@@ -1248,7 +1248,7 @@
 CODE
 /
 ok 1
-Could not find non-existent sub nok/
+Could not find sub nok/
 OUT
 
 


More information about the parrot-commits mailing list