Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
wooster0 committed Dec 1, 2018
1 parent 4f5c55d commit dadf341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/crystal/semantic/bindings.cr
Expand Up @@ -519,7 +519,7 @@ module Crystal
end

if types.size > 300
raise "tuple too big: Tuple(#{types[0...10].join(',')}, ...)"
raise "tuple too big: Tuple(#{types.first(10).join(", ")}, ...)"
end

self.type = tuple_type
Expand Down

0 comments on commit dadf341

Please sign in to comment.