ligo/src/bin/cli_helpers.ml

10 lines
183 B
OCaml
Raw Normal View History

open Trace
let toplevel x =
match x with
| Trace.Ok ((), annotations) -> ignore annotations; ()
| Error ss -> (
2019-09-18 20:49:33 +04:00
Format.printf "%a%!" Main.Display.error_pp (ss ())
)