Skip to content
Snippets Groups Projects
Unverified Commit ae1bf8a4 authored by Oleg Babin's avatar Oleg Babin Committed by Alexander Turenko
Browse files

error: add __concat method to error object

Usually functions return pair `nil, err` and expected that err is string.
Let's make the behaviour of error object closer to string
and define __concat metamethod.

The case of error "error_mt.__concat(): neither of args is an error"
is not covered by tests because of #4723

Closes #4489

(cherry picked from commit 935db173)
parent b89c62bd
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment