File tree 1 file changed +15
-4
lines changed
1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,26 @@ let handle_extension e (self : Bs_ast_mapper.mapper)
33
33
| None -> None
34
34
in
35
35
Location. prerr_warning e.Parsetree. pexp_loc (Bs_todo todo_message);
36
+ let pretext =
37
+ loc.loc_start.pos_fname ^ " :"
38
+ ^ string_of_int loc.loc_start.pos_lnum
39
+ ^ " :"
40
+ ^ string_of_int loc.loc_start.pos_cnum
41
+ ^ " -"
42
+ ^ string_of_int loc.loc_end.pos_cnum
43
+ in
44
+
36
45
Exp. apply ~loc
37
- (Exp. ident ~loc {txt = Longident. parse " failwith " ; loc})
46
+ (Exp. ident ~loc {txt = Longident. parse " Js.Exn.raiseError " ; loc})
38
47
[
39
48
( Nolabel ,
40
49
Exp. constant ~loc
41
50
(Pconst_string
42
- ( (match todo_message with
43
- | None -> " todo"
44
- | Some msg -> msg),
51
+ ( (pretext
52
+ ^
53
+ match todo_message with
54
+ | None -> " - Todo"
55
+ | Some msg -> " - Todo: " ^ msg),
45
56
None )) );
46
57
]
47
58
| "ffi" -> Ast_exp_handle_external. handle_ffi ~loc ~payload
You can’t perform that action at this time.
0 commit comments