Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change conversion of
box.error
to string in error message assertions
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#9105
- Loading branch information