tarantool / tarantool/tarantool
Empty string into connectors from error function in tnt with table as argument
Open
Nobody has claimed this yet.
bug
- Dominant language
- Lua
- Stars
- 3.7k
- Forks
- 419
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 88
Description
If you specify a table as an argument for the function error(), it returns an empty string to connector (for example, upstream module).
Example:
tarantool
error({code=500,message='Internal error'})
connector
{"id":0,"error":{"message":"","code":32800}}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the error() call when its table argument contains code and message, then follow how the connector or upstream module receives that error. Reproduce the example from the issue and verify that the connector receives "Internal error" instead of an empty message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100