Skip to content

Commit 28329a7

Browse files
committed
demote bare say message in case of bogus term
1 parent efd2de0 commit 28329a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

STD.pm6

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4104,12 +4104,13 @@ grammar P6 is STD {
41044104
given +%deftrap{$name} {
41054105
.worry("Use of non-subscript <...> where postfix is expected; please use whitespace") if $_ and substr(self.orig, $¢.pos, 1) eq '<';
41064106
when 1 { # probably misused P5ism
4107-
$<identifier>.sorryobs("bare '$name'", ".$name if you meant \$_, or use an explicit invocant or argument");
4107+
$<identifier>.worryobs("bare '$name'", ".$name if you meant \$_, or use an explicit invocant or argument");
41084108
}
41094109
when 2 { # probably misused P6ism
4110-
$<identifier>.sorry("The '$name' listop may not be called without arguments (please use () or whitespace to clarify)");
4110+
$<identifier>.worry("The '$name' listop may not be called without arguments (please use () or whitespace to clarify)");
41114111
}
41124112
}
4113+
$<identifier>.sorry("No valid term seen where one is required");
41134114
}
41144115
}
41154116
}

0 commit comments

Comments
 (0)