[Tarantool-patches] [tarantool-patches] Re: [PATCH 1/1] console: fix usage of an undeclared variable

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Fri Oct 18 00:22:56 MSK 2019



On 17/10/2019 23:15, Cyrill Gorcunov wrote:
> On Thu, Oct 17, 2019 at 11:18:22PM +0200, Vladislav Shpilevoy wrote:
>> Previously there was an error about undeclared variable.
>>
>>     'return rc'
>>
>> Here 'rc' was not declared.
> 
> Yes, and it means we will get nil here, and the caller code
> threat it as no-error and return empty string upward.
> 

No, it was not nil. It was:

localhost:3313> 
---
- error: 'builtin/box/console.lua:454: variable ''rc'' is not declared'
...


More information about the Tarantool-patches mailing list