Merge branch 'feature/stderr' into 'dev'

Print errors to stderr, exit 1

See merge request ligolang/ligo!66
This commit is contained in:
Tom Jack 2019-09-26 00:56:55 +00:00
commit a2240e0649

View File

@ -9,4 +9,8 @@ let toplevel ~(display_format : string) (x : string result) =
failwith "Display format"
)
in
Format.printf "%a" (formatted_string_result_pp display_format) x
match x with
| Ok _ -> Format.printf "%a" (formatted_string_result_pp display_format) x
| Error _ ->
Format.eprintf "%a" (formatted_string_result_pp display_format) x ;
exit 1