Skip to content

Commit c615f9a

Browse files
authored
Merge pull request #837 from titsuki/fix-catch
Fix the error message to be the acutual one
2 parents dbc3d25 + b416dd9 commit c615f9a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc/Type/Signature.pod6

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,7 @@ use the C<:D> type constraint.
165165
say limit-lines Str, 3;
166166
CATCH { default { put .^name, .Str } };
167167
# OUTPUT«X::AdHocParameter '$s' requires an instance of type Str, but a
168-
# type object was passed. Did you forget a .new?␤Parameter '$s' requires
169-
# an instance of type Str, but a type object was passed. Did you forget a
170-
# .new?␤ in sub limit-lines at <tmp> line 1…»
168+
# type object was passed. Did you forget a .new?»
171169
172170
This is much better than the way the program failed before, since here the
173171
reason for failure is clearer.

0 commit comments

Comments
 (0)