Permalink
Browse files

don't ask "did you mean" for 0 suggested routines.

  • Loading branch information...
1 parent 134be29 commit 108e37f58168115f8cababad917cbcf6315a3b22 @timo timo committed Jan 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Exception.pm
@@ -517,7 +517,7 @@ my class X::Undeclared::Symbols does X::Comp {
$r ~= "Undeclared routine" ~ (%.unk_routines.elems == 1 ?? "" !! "s") ~ ":\n";
for %.unk_routines.sort(*.key) {
$r ~= " $_.key() &l($_.value)";
- if %.routine_suggestion{$_.key()} :exists {
+ if +%.routine_suggestion{$_.key()} {
$r ~= ". " ~ s(%.routine_suggestion{$_.key()});
}
$r ~= "\n";

0 comments on commit 108e37f

Please sign in to comment.