Commit 45b5835
[CE-431] Fixed incorrect error display
Error text retrieval changed from `err.err` to `tostring(err)` based on the following reasons:
1. If `err` happens to be a string, the result will also be a string
2. If `err` is an instance of `vshard.error`, it has a `tostring` operator that converts the structure into a JSON string
3. If `err` is an instance of the generic `errors` module, it also provides a `tostring` method
(cherry picked from commit cf7d963bea98a1f21a673531c88cec98dcaf58a1)1 parent 419296e commit 45b5835
File tree
3 files changed
+16
-1
lines changed- crud/common
- test/integration
3 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
0 commit comments