ligo/src/bin/cli_helpers.ml

10 lines
178 B
OCaml
Raw Normal View History

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