From f70a3ccdea72fe447fa152c867b05e1f5c8e6e0c Mon Sep 17 00:00:00 2001 From: Elizabeth Mattijsen Date: Sun, 5 Jul 2020 11:24:13 +0200 Subject: [PATCH] Wordwrap X::Attribute::Regex message --- src/core.c/Exception.pm6 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core.c/Exception.pm6 b/src/core.c/Exception.pm6 index b577c5bfe83..18fa564b9f0 100644 --- a/src/core.c/Exception.pm6 +++ b/src/core.c/Exception.pm6 @@ -1045,8 +1045,7 @@ my class X::Attribute::Undeclared is X::Undeclared { my class X::Attribute::Regex is X::Undeclared { method message() { - "Attribute $.symbol not available inside of a regex, since regexes are methods on Cursor.\n" ~ - "Consider storing the attribute in a lexical, and using that in the regex."; + "Attribute '$.symbol' not available inside of a regex, since regexes are methods on the Cursor class. Consider storing the attribute in a lexical, and using that in the regex.".naive-word-wrapper } }