Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions jscomp/core/ast_io.cppo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ let set_input_lexbuf () =
in
begin match set_input_lexbuf !Location.input_name with
| (_ : Lexing.lexbuf) -> ()
| exception Unix.Unix_error (Unix.ENOENT, _, _)
| exception Sys_error _ -> ()
end

Expand Down
10 changes: 2 additions & 8 deletions test/blackbox-tests/ppx-location-snippet.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,8 @@ Test that the location snippet appears in a ppx-processed compilation error

$ export DUNE_SANDBOX=symlink
$ dune build @melange
File "dune", lines 1-4, characters 0-81:
1 | (melange.emit
2 | (target out)
3 | (emit_stdlib false)
4 | (preprocess (pps melange.ppx)))
melc: internal error, uncaught exception:
Unix.Unix_error(Unix.ENOENT, "open", "foo.ml")

File "foo.ml", line 1, characters 7-11:
Error: Unbound type constructor nope
[1]

$ export DUNE_SANDBOX=none
Expand Down
Loading