Skip to content

Commit

Permalink
Fix a formatting error in the "missing argument" error (#10325)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlobCodes authored and bcardiff committed Jan 29, 2021
1 parent 64796a5 commit 55a5e2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compiler/crystal/semantic/call_error.cr
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ class Crystal::Call
private def no_overload_matches_message(io, full_name, defs, args, arg_types, named_args_types)
if message = single_def_error_message(defs, named_args_types)
io << message
io << '\n'
return
end

Expand Down Expand Up @@ -301,6 +302,7 @@ class Crystal::Call
raise(String.build do |str|
if single_message = single_def_error_message(defs, named_args_types)
str << single_message
str << '\n'
else
str << "wrong number of arguments for '"
str << full_name(owner, def_name)
Expand Down

0 comments on commit 55a5e2b

Please sign in to comment.