tarantool / tarantool/tarantool

Empty string into connectors from error function in tnt with table as argument

Open
#1,710 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.