This repository was archived by the owner on Jun 26, 2022. It is now read-only.
Commit cf36798
authored
Fix error messages being duplicated (#5)
## What is the goal of this PR?
Previously, when parsing a query failed with an error, on converting the resulting error object to a string, the string would contain two copies of the error message - e.g:
```
[GQL03] TypeQL Error: There is a syntax error at line 1:
match $x sb thing;
^
no viable alternative at input 'match $x sb'
[GQL03] TypeQL Error: There is a syntax error at line 1:
match $x sb thing;
^
no viable alternative at input 'match $x sb'
```
This is now fixed and error messages are no longer duplicated. (Also, the error code is now TQL)
## What are the changes implemented in this PR?
- Fix error messages being duplicated (fixes #4)
- Change error code from GQL to TQL1 parent fdd2b00 commit cf36798
File tree
3 files changed
+6
-1
lines changed- common/exception
- parser
3 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| |||
0 commit comments