Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Patch to P6opaque num/str attribute lookup to report which attribute …
…was not located.
  • Loading branch information
pmichaud committed Jul 1, 2011
1 parent 1819a41 commit 879073f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/6model/reprs/P6opaque.c
Expand Up @@ -480,7 +480,7 @@ static FLOATVAL get_attribute_num(PARROT_INTERP, PMC *obj, PMC *class_handle, ST

/* Fall back to the spill storage. */
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
"P6opaque attributes NYFI 2");
"P6opaque attributes NYFI 2 (attribute '%Ss')", name);
}
static STRING * get_attribute_str(PARROT_INTERP, PMC *obj, PMC *class_handle, STRING *name, INTVAL hint) {
P6opaqueInstance *instance = (P6opaqueInstance *)PMC_data(obj);
Expand All @@ -501,7 +501,7 @@ static STRING * get_attribute_str(PARROT_INTERP, PMC *obj, PMC *class_handle, ST

/* Fall back to the spill storage. */
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
"P6opaque attributes NYFI 3");
"P6opaque attributes NYFI 3 (attribute '%Ss')", name);
}

/* Binds the given value to the specified attribute. */
Expand Down

0 comments on commit 879073f

Please sign in to comment.