File tree 1 file changed +4
-13
lines changed 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -14,27 +14,18 @@ let append_article (noun : string) =
14
14
| false -> " a " ^ noun
15
15
16
16
let make_error_wrong_operation op member_kind (value : Json.t ) =
17
- let open Console in
18
17
" Trying to "
19
- ^ Formatting. single_quotes (Chalk. bold op)
18
+ ^ Console. Formatting. single_quotes (Chalk. bold op)
20
19
^ " on "
21
- ^ (append_article member_kind |> Chalk. bold )
22
- ^ " :" ^ Formatting. enter 1
20
+ ^ Chalk. bold (append_article member_kind)
21
+ ^ " :" ^ Console. Formatting. enter 1
23
22
^ Chalk. gray (Json. to_string value ~colorize: false ~summarize: true )
24
23
25
24
let make_empty_list_error op =
26
- let open Console in
27
25
" Trying to "
28
- ^ Formatting. single_quotes (Chalk. bold op)
26
+ ^ Console. Formatting. single_quotes (Chalk. bold op)
29
27
^ " on an empty array."
30
28
31
- let make_acessing_to_missing_item access_index length =
32
- let open Console in
33
- " Trying to read "
34
- ^ Formatting. single_quotes
35
- (" [" ^ Chalk. bold (Int. to_string access_index) ^ " ]" )
36
- ^ " from an array with " ^ Int. to_string length ^ " elements only."
37
-
38
29
let get_field_name json =
39
30
match json with
40
31
| `List _ -> " list"
You can’t perform that action at this time.
0 commit comments