[svn:parrot] r49715 - trunk/src/pmc
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Thu Oct 28 21:15:16 UTC 2010
Author: NotFound
Date: Thu Oct 28 21:15:15 2010
New Revision: 49715
URL: https://trac.parrot.org/parrot/changeset/49715
Log:
use appropiate exception type in PMCProxy init_int
Modified:
trunk/src/pmc/pmcproxy.pmc
Modified: trunk/src/pmc/pmcproxy.pmc
==============================================================================
--- trunk/src/pmc/pmcproxy.pmc Thu Oct 28 20:15:08 2010 (r49714)
+++ trunk/src/pmc/pmcproxy.pmc Thu Oct 28 21:15:15 2010 (r49715)
@@ -101,8 +101,9 @@
/* Ensure that it's a valid type number. */
if (type_num > INTERP->n_vtable_max || type_num <= 0)
- Parrot_ex_throw_from_c_args(INTERP, NULL, 1,
- "Attempt to create PMC Proxy for invalid type number!");
+ Parrot_ex_throw_from_c_args(INTERP, NULL,
+ EXCEPTION_INVALID_OPERATION,
+ "Attempt to create PMC Proxy for invalid type number!");
/* Set up the object. */
SELF.init();
More information about the parrot-commits
mailing list