Skip to content

Commit 92e21b1

Browse files
committed
Remove opens
1 parent 8f3b264 commit 92e21b1

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

source/Compiler.ml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,18 @@ let append_article (noun : string) =
1414
| false -> "a " ^ noun
1515

1616
let make_error_wrong_operation op member_kind (value : Json.t) =
17-
let open Console in
1817
"Trying to "
19-
^ Formatting.single_quotes (Chalk.bold op)
18+
^ Console.Formatting.single_quotes (Chalk.bold op)
2019
^ " on "
21-
^ (append_article member_kind |> Chalk.bold)
22-
^ ":" ^ Formatting.enter 1
20+
^ Chalk.bold (append_article member_kind)
21+
^ ":" ^ Console.Formatting.enter 1
2322
^ Chalk.gray (Json.to_string value ~colorize:false ~summarize:true)
2423

2524
let make_empty_list_error op =
26-
let open Console in
2725
"Trying to "
28-
^ Formatting.single_quotes (Chalk.bold op)
26+
^ Console.Formatting.single_quotes (Chalk.bold op)
2927
^ " on an empty array."
3028

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-
3829
let get_field_name json =
3930
match json with
4031
| `List _ -> "list"

0 commit comments

Comments
 (0)