• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 7932379524
88%

Build:
DEFAULT BRANCH: master
Ran 16 Feb 2024 03:17PM UTC
Jobs 1
Files 513
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Feb 2024 03:02PM UTC coverage: 86.922% (-0.01%) from 86.936%
7932379524

push

github

sergepetrenko
lua: add `message` argument to table constructor of `box.error.new`

Currently, the error message is specified in the `reason` argument to the
table constructor of `box.error.new`. This is confusing, because the
message is accessed and printed by `error:unpack` as `message`.

Let’s allow users to pass the error message in the `message` argument. We
won’t drop the `reason` argument so as not to break potential users. Let's
also allow to omit the message key by treating the first table constructor
entry as an error message if present.

The error message setting has the following priority: first table
constructor entry > `message` > `reason`.

This change is backwards-compatible and does not require a new `compat`
option.

Closes #9102

@TarantoolBot document
Title: Document `message` argument to table constructor of `box.error.new`
Product: Tarantool
Since: 3.1
Root documents: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_error/new/
and https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_error/error

[Link to the design document](https://www.notion.so/tarantool/Error-subsystem-improvements-90faa0a4714b4143abaf8bed2c10b2fc?pvs=4#c984e766372743c99a4a7be79a5783f6)

66924 of 119428 branches covered (56.04%)

99366 of 114316 relevant lines covered (86.92%)

2694011.36 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7932379524.1 16 Feb 2024 03:17PM UTC 0
86.92
GitHub Action Run
Source Files on build 7932379524
Detailed source file information is not available for this build.
  • Back to Repo
  • a19aac86 on github
  • Prev Build on master (#7931947399)
  • Next Build on master (#7932707435)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc