Skip to content
This repository
Browse code

[S32::Exception] improve error message for X::Syntax::Augment::Role

  • Loading branch information...
commit 771d5050f6bfc3dcd80fa202de47b5c6f45f3d74 1 parent 2774606
Moritz Lenz authored August 24, 2012

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  S32-setting-library/Exception.pod
7  S32-setting-library/Exception.pod
Source Rendered
@@ -17,8 +17,8 @@ Authors of previous versions of this document:
17 17
 
18 18
     Created: 26 Feb 2009
19 19
 
20  
-    Last Modified: 23 August 2012
21  
-    Version: 23
  20
+    Last Modified: 24 August 2012
  21
+    Version: 24
22 22
 
23 23
 The document is a draft.
24 24
 
@@ -640,7 +640,8 @@ Thrown when C<augment> is used without C<use MONKEY_TYPING>.
640 640
 Thrown when trying to agument a role.
641 641
 
642 642
     my class X::Syntax::Augment::Role does X::Syntax {
643  
-        method message() { "Cannot augment a role, since roles are immutable" };
  643
+        has $.role-name;
  644
+        method message() { "Cannot augment role $.role-name, since roles are immutable" };
644 645
     }
645 646
 
646 647
 =head3 X::Syntax::Placeholder

0 notes on commit 771d505

Please sign in to comment.
Something went wrong with that request. Please try again.