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

Merged
merged 1 commit into from Jan 19, 2013
View
2 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";