mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-07 18:37:56 -05:00
better error message
This commit is contained in:
parent
b3da5bc41e
commit
0947d2d523
1 changed files with 4 additions and 1 deletions
|
|
@ -73,7 +73,10 @@ let expand_top_let ~ctxt rec_flag (vbs : _ list) =
|
|||
pstr_eval ~loc
|
||||
(pexp_constant ~loc
|
||||
(Pconst_string
|
||||
("ppxtrace: cannot trace `function`", loc, None)))
|
||||
( "ppxtrace: cannot trace `function`, please unsugar \
|
||||
to `fun`+`match`.",
|
||||
loc,
|
||||
None )))
|
||||
[];
|
||||
] )
|
||||
| _ ->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue