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 -> (
Format.printf "%a%!" Ligo.Display.error_pp (ss ())
)