Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole authored and hhugo committed Aug 26, 2024
1 parent b6a2012 commit 6ec6e75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/js_of_ocaml/json.ml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ let input_reviver =

let unsafe_input s =
match Sys.backend_type with
| Other "wasm_of_ocaml" -> failwith "Json.unsafe_input: not implemented"
| Other "wasm_of_ocaml" ->
failwith
"Json.unsafe_input: not implemented (and not planned) in the Wasm backend as the \
inverse of `output` is not implementable"
| _ -> json##parse_ s input_reviver

class type obj = object
Expand Down

0 comments on commit 6ec6e75

Please sign in to comment.