File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ module Of_json = struct
76
76
let v = (Obj. magic json : string ) in
77
77
match Int64. of_string_opt v with
78
78
| Some v -> v
79
- | None -> of_json_error " expected an int64"
80
- else of_json_error " expected a string"
79
+ | None -> of_json_error " expected int64 as string "
80
+ else of_json_error " expected int64 as string"
81
81
82
82
let float_of_json (json : t ) : float =
83
83
if Js. typeof json = " number" then (Obj. magic json : float )
Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ module Of_json = struct
73
73
| `String i as json -> (
74
74
match Int64. of_string_opt i with
75
75
| Some v -> v
76
- | None -> of_json_error_type_mismatch json " string" )
77
- | json -> of_json_error_type_mismatch json " string"
76
+ | None -> of_json_error_type_mismatch json " int64 as string" )
77
+ | json -> of_json_error_type_mismatch json " int64 as string"
78
78
79
79
let float_of_json = function
80
80
| `Float f -> f
You can’t perform that action at this time.
0 commit comments