Skip to content

Commit 2b6c183

Browse files
authored
Use relative path for error messages. (#708)
1 parent 29eddc6 commit 2b6c183

File tree

307 files changed

+661
-669
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

307 files changed

+661
-669
lines changed

spec/errors/access_expected_field

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ component Main {
66

77
I was expecting the name of the accessed entity but I found "a space" instead:
88

9-
./spec/errors/access_expected_field:3:7
10-
├────────────────────────────────────────
9+
┌ errors/access_expected_field:3:7
10+
├─────────────────────────────────
1111
1│ component Main {
1212
2│ fun render : String {
1313
3│ "".

spec/errors/access_field_not_found

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ The accessed field "blaha" does not exists on the entity:
1919

2020
The access in question is here:
2121

22-
./spec/errors/access_field_not_found:10:5
23-
├──────────────────────────────────────────
22+
┌ errors/access_field_not_found:10:5
23+
├───────────────────────────────────
2424
6│ fun render : Bool {
2525
7│ let blah =
2626
8│ { blah: "Hello" }

spec/errors/access_not_record

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ You are trying to access a field on an entity which is not a record:
1414

1515
The access in question is here:
1616

17-
./spec/errors/access_not_record:5:5
18-
├────────────────────────────────────
17+
┌ errors/access_not_record:5:5
18+
├─────────────────────────────
1919
1│ component Main {
2020
2│ fun render : Bool {
2121
3│ let blah = ""

spec/errors/argument_expected_colon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ A colon must separate the arguments name from its type, here is an example:
99

1010
I was expecting the colon of the argument but I found "a space" instead:
1111

12-
./spec/errors/argument_expected_colon:2:15
13-
├───────────────────────────────────────────
12+
┌ errors/argument_expected_colon:2:15
13+
├────────────────────────────────────
1414
1│ component Main {
1515
2│ fun render (a
1616
│ ⌃⌃⌃⌃

spec/errors/argument_expected_default_value

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ an example:
1010

1111
I was expecting the default value of the argument but I found "a space" instead:
1212

13-
./spec/errors/argument_expected_default_value:2:26
14-
├───────────────────────────────────────────────────
13+
┌ errors/argument_expected_default_value:2:26
14+
├────────────────────────────────────────────
1515
1│ component Main {
1616
2│ fun render (a : String =
1717
│ ⌃⌃⌃⌃

spec/errors/argument_expected_type

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ An argument must have its type defined, here is an example:
99

1010
I was expecting the type of the argument but I found "a space" instead:
1111

12-
./spec/errors/argument_expected_type:2:17
13-
├──────────────────────────────────────────
12+
┌ errors/argument_expected_type:2:17
13+
├───────────────────────────────────
1414
1│ component Main {
1515
2│ fun render (a :
1616
│ ⌃⌃⌃⌃

spec/errors/array_destructuring_expected_closing_bracket

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ component Main {
77
I was expecting the closing bracket of an array destructuring but I found "a
88
space" instead:
99

10-
./spec/errors/array_destructuring_expected_closing_bracket:3:10
11-
├────────────────────────────────────────────────────────────────
10+
┌ errors/array_destructuring_expected_closing_bracket:3:10
11+
├─────────────────────────────────────────────────────────
1212
1│ component Main {
1313
2│ fun render : String {
1414
3│ let [x

spec/errors/array_expected_closing_bracket

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ component Main {
66

77
I was expecting the closing bracket of an array but I found "a space" instead:
88

9-
./spec/errors/array_expected_closing_bracket:3:8
10-
├─────────────────────────────────────────────────
9+
┌ errors/array_expected_closing_bracket:3:8
10+
├──────────────────────────────────────────
1111
1│ component Main {
1212
2│ fun render : Array(String) {
1313
3│ ["A"

spec/errors/array_expected_type_or_variable

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ example:
1111

1212
I was expecting the type but I found "a space" instead:
1313

14-
./spec/errors/array_expected_type_or_variable:3:9
15-
├──────────────────────────────────────────────────
14+
┌ errors/array_expected_type_or_variable:3:9
15+
├───────────────────────────────────────────
1616
1│ component Main {
1717
2│ fun render : Array(String) {
1818
3│ [] of

spec/errors/array_not_matches

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ component Main {
1313
<div/>
1414
}
1515
}
16-
--------------------------------------------------------------------------------░ ERROR (ARRAY_NOT_MATCHES) ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
16+
--------------------------------------------------------------------------------
17+
░ ERROR (ARRAY_NOT_MATCHES) ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
1718

1819
The 2nd item of an array does not match the type of the 1st item.
1920

@@ -27,8 +28,8 @@ Instead it is:
2728

2829
The item in question is here:
2930

30-
./spec/errors/array_not_matches:5:7
31-
├────────────────────────────────────
31+
┌ errors/array_not_matches:5:7
32+
├─────────────────────────────
3233
1│ component Main {
3334
2│ fun test : Array(String) {
3435
3│ [

0 commit comments

Comments
 (0)