Skip to content

Commit 3b752a3

Browse files
author
Brian J. Cardiff
committedMay 2, 2017
Fixes #4336. Use original_location for debug info
1 parent 67d4b21 commit 3b752a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/compiler/crystal/codegen/codegen.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ module Crystal
12321232
] of ASTNode
12331233

12341234
if location = node.location
1235-
pieces << StringLiteral.new(", at #{location.filename}:#{location.line_number}").at(node)
1235+
pieces << StringLiteral.new(", at #{location.original_location}:#{location.line_number}").at(node)
12361236
end
12371237

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

0 commit comments

Comments
 (0)
Please sign in to comment.