Commit 1b33e92
committed
fix: Improve error reporting for Query in fileLoader and nonLoader.
The Query methods in fileLoader and nonLoader previously either
returned a "not support" message via the data payload (fileLoader)
or failed silently (nonLoader), both with a nil error.
This commit changes them to return explicit non-nil errors,
indicating that the Query functionality is not implemented for
these loader types. This aligns better with Go's error handling
conventions and provides clearer feedback to callers.1 parent 6675436 commit 1b33e92
2 files changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
516 | 517 | | |
517 | 518 | | |
518 | 519 | | |
519 | | - | |
520 | | - | |
521 | | - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
522 | 526 | | |
523 | 527 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
151 | 155 | | |
152 | 156 | | |
153 | 157 | | |
| 158 | + | |
154 | 159 | | |
155 | 160 | | |
0 commit comments