8843a46975
The calls to the lexer and parser of CameLIGO through the compiler use now their error messages, like in PascaLIGO.
18 lines
635 B
OCaml
18 lines
635 B
OCaml
open Cli_expect
|
|
|
|
let%expect_test _ =
|
|
run_ligo_bad [ "compile-contract" ; "../../test/contracts/negative/error_syntax.ligo" ; "main" ] ;
|
|
[%expect {|
|
|
ligo: : Parse error in file "error_syntax.ligo", line 1, characters 16-17, after "bar" and before "-".
|
|
{}
|
|
|
|
|
|
If you're not sure how to fix this error, you can
|
|
do one of the following:
|
|
|
|
* Visit our documentation: https://ligolang.org/docs/intro/what-and-why/
|
|
* Ask a question on our Discord: https://discord.gg/9rhYaEt
|
|
* Open a gitlab issue: https://gitlab.com/ligolang/ligo/issues/new
|
|
* Check the changelog by running 'ligo changelog' |} ] ;
|
|
|