Skip to content

Commit

Permalink
[S32::Exception] improve error message for X::Syntax::Augment::Role
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Aug 24, 2012
1 parent 2774606 commit 771d505
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions S32-setting-library/Exception.pod
Expand Up @@ -17,8 +17,8 @@ Authors of previous versions of this document:

Created: 26 Feb 2009

Last Modified: 23 August 2012
Version: 23
Last Modified: 24 August 2012
Version: 24

The document is a draft.

Expand Down Expand Up @@ -640,7 +640,8 @@ Thrown when C<augment> is used without C<use MONKEY_TYPING>.
Thrown when trying to agument a role.

my class X::Syntax::Augment::Role does X::Syntax {
method message() { "Cannot augment a role, since roles are immutable" };
has $.role-name;
method message() { "Cannot augment role $.role-name, since roles are immutable" };
}

=head3 X::Syntax::Placeholder
Expand Down

0 comments on commit 771d505

Please sign in to comment.