Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/crystal/codegen/codegen.cr
Original file line number Diff line number Diff line change
@@ -1232,7 +1232,7 @@ module Crystal
] of ASTNode

if location = node.location
pieces << StringLiteral.new(", at #{location.filename}:#{location.line_number}").at(node)
pieces << StringLiteral.new(", at #{location.original_location}:#{location.line_number}").at(node)
end

ex = Call.new(Path.global("TypeCastError").at(node), "new", StringInterpolation.new(pieces).at(node)).at(node)

0 comments on commit 3b752a3

Please sign in to comment.