Skip to content

Commit 270ab07

Browse files
committed
avoid printing ghost location
1 parent 4ff3edc commit 270ab07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

parsing/location.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ let absolute_path s = (* This function could go into Filename *)
239239
aux s
240240

241241
let show_filename file =
242+
let file = if file = "_none_" then !input_name else file in
242243
if !absname then absolute_path file else file
243244

244245
let print_filename ppf file =

0 commit comments

Comments
 (0)