tarantool/tarantool

Add an analogue of panic, but using the last diagnostics area

开放

#4,685 创建于 2019年12月15日

 (0 条评论) (1 个反应) (0 位负责人)Lua (406 个派生)batch import
featuregood first issuerefactoring

仓库指标

星标
 (3,633 个星标)
PR 合并指标
 (平均合并 13天 2小时) (30 天内合并 82 个 PR)

描述

It is a common thing when code does something like this:

if (do_something(...)) {
        panic("Something failed, out of memory");
}

That is wrong in 2 ways: it is not always out of memory error, and the original error message is lost. We need something like diag_panic().

贡献者指南