Commit 0f4093e
authored
Include AST issues display string in compilation error (#14)
Including the errors from the compiler makes it easier to find and fix
errors. For example this signed-versus-unsigned type error:
```
build.buf.protovalidate.exceptions.CompilationException: Failed to compile expression id.non_zero:
ERROR: <input>:1:28: found no matching overload for '_!=_' applied to '(uint, int)'
| this.most_significant_bits != 0 || this.least_significant_bits != 0u
| ...........................^
```1 parent 9d1946d commit 0f4093e
File tree
1 file changed
+2
-1
lines changed- src/main/java/build/buf/protovalidate/internal/expression
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments