Skip to content

Commit

Permalink
awesome error message when you try to access attributes of type objec…
Browse files Browse the repository at this point in the history
…ts, as suggested by TimToady++
  • Loading branch information
moritz committed Mar 9, 2010
1 parent 62d70b7 commit e42042c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pmc/p6opaque.pmc
Expand Up @@ -500,7 +500,7 @@ Gets an attribute from the instance storage.
* never be accessing state. */
if (VTABLE_isa(interp, SELF, P6protoobject_str))
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
"Type objects do not have state, but you tried to access attribute %Ss",
"Type objects are abstract and have no attributes, but you tried to access %s",
name);

/* Otherwise, for now we'll just allow the Null PMC Access to happen (yes sucks
Expand Down

0 comments on commit e42042c

Please sign in to comment.