Skip to content

Commit ee0ef5b

Browse files
chengloubobzhang
authored andcommitted
Indent deprecation warning's userland message
Before it was like: ``` deprecated: Belt.List.filterWithIndex This function will soon be deprecated. Please, use `List.keepWithIndex` instead. ``` Now it's: ``` deprecated: Belt.List.filterWithIndex This function will soon be deprecated. Please, use `List.keepWithIndex` instead. ``` This helps with the visual but also the parsing of the messages. Without our super errors system, this'll now look like: ``` deprecated: Belt.List.filterWithIndex This function will soon be deprecated. Please, use `List.keepWithIndex` instead. ``` Which is still tasteful
1 parent 7e4a71d commit ee0ef5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parsing/builtin_attributes.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ let cat s1 s2 =
6363
if s2 = "" then s1 else
6464
#if undefined BS_NO_COMPILER_PATCH then
6565
if Clflags.bs_vscode then s1 ^ " " ^ s2
66-
else s1 ^ "\n" ^ s2
66+
(* 2 spaces indentation for the next line *)
67+
else s1 ^ "\n " ^ s2
6768
#else
6869
s1 ^ "\n" ^ s2
6970
#end

0 commit comments

Comments
 (0)