Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions jscomp/super_errors/super_location.ml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ let print ~is_warning intro ppf loc =
(Super_misc.print_file ~is_warning ~lines ~range)
()
with
(* this shouldn't happen, but gracefully fall back to the default reporter just in case *)
| Sys_error _ -> Location.print ppf loc
(* this might happen if the file is e.g. "", "_none_" or any of the fake file name placeholders.
we've already printed the location above, so nothing more to do here. *)
| Sys_error _ -> ()
end
;;

Expand Down