Commit cab46b4
committed
Change conversion of
Currently, error message assertions convert `box.error` to string using
`tostring`. The string conversion metamethod of `box.error` is currently
equivalent to the `message` field of `box.error`. In scope of
tarantool/tarantool#9105, we are going to increase the verbosity of
the string metamethod, and it will no longer be suitable for testing error
messages. Let's replace `tostring(error)` conversions with `error.message`
to retain the old behaviour.
Needed for tarantool/tarantool#9105box.error to string in error message assertions1 parent f8a1c10 commit cab46b4
1 file changed
+15
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
461 | 473 | | |
462 | 474 | | |
463 | 475 | | |
| |||
467 | 479 | | |
468 | 480 | | |
469 | 481 | | |
470 | | - | |
471 | | - | |
| 482 | + | |
472 | 483 | | |
473 | 484 | | |
474 | 485 | | |
| |||
533 | 544 | | |
534 | 545 | | |
535 | 546 | | |
536 | | - | |
| 547 | + | |
537 | 548 | | |
538 | 549 | | |
539 | 550 | | |
| |||
555 | 566 | | |
556 | 567 | | |
557 | 568 | | |
558 | | - | |
| 569 | + | |
559 | 570 | | |
560 | 571 | | |
561 | 572 | | |
| |||
0 commit comments