catala/tests/struct/bad/nonexisting_struct.catala_en
Louis Gesbert c864f658c8 Cleaner message printing
Aerates the printing of messages, removes extraneous noise, and more clearly
attaches the various information tied to a given message.
2024-05-03 12:21:34 +02:00

29 lines
528 B
Plaintext

## Article
```catala
declaration structure Foo:
data f content integer
declaration scope A:
context x content Foo
context y content integer
scope A:
definition x equals Foo { -- f: 1 }
definition y equals x.Fo.f
```
```catala-test-inline
$ catala test-scope A
┌─[ERROR]─
│ No struct named Fo found
├─➤ tests/struct/bad/nonexisting_struct.catala_en:13.25-13.27:
│ │
│ 13 │ definition y equals x.Fo.f
│ │ ‾‾
└─ Article
#return code 123#
```