Commit 0f7eac6
committed
Change conversion of
Currently, error message assertions convert `box.error` to string using
`tostring`. `box.error`'s `__tostring` metamethod is currently
equivalent to the `message` field of `box.error`. In scope of
tarantool/tarantool#9105, we are going to increase the verbosity of
`box.error` `__tostring` metamethod, and it will no longer be
convenient for testing the error message. Let's replace `tostring(error)`
with `error.message` usag to retain the old behaviour.
Needed for tarantool/tarantool#9105box.error to string in error message assertions1 parent f8a1c10 commit 0f7eac6
1 file changed
+15
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
472 | 476 | | |
473 | 477 | | |
474 | 478 | | |
| |||
533 | 537 | | |
534 | 538 | | |
535 | 539 | | |
536 | | - | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
537 | 545 | | |
538 | 546 | | |
539 | 547 | | |
| |||
555 | 563 | | |
556 | 564 | | |
557 | 565 | | |
558 | | - | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
559 | 571 | | |
560 | 572 | | |
561 | 573 | | |
| |||
0 commit comments