Commit fc5c42e
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 fc5c42e
1 file changed
+12
-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 | + | |
461 | 470 | | |
462 | 471 | | |
463 | 472 | | |
| |||
467 | 476 | | |
468 | 477 | | |
469 | 478 | | |
470 | | - | |
471 | | - | |
| 479 | + | |
472 | 480 | | |
473 | 481 | | |
474 | 482 | | |
| |||
533 | 541 | | |
534 | 542 | | |
535 | 543 | | |
536 | | - | |
| 544 | + | |
537 | 545 | | |
538 | 546 | | |
539 | 547 | | |
| |||
555 | 563 | | |
556 | 564 | | |
557 | 565 | | |
558 | | - | |
| 566 | + | |
559 | 567 | | |
560 | 568 | | |
561 | 569 | | |
| |||
0 commit comments