[Tarantool-patches] [PATCH 0/7] box/console: add support for internal types
Cyrill Gorcunov
gorcunov at gmail.com
Tue May 12 20:31:35 MSK 2020
On Tue, May 12, 2020 at 08:06:07PM +0300, Mons Anderson wrote:
> >> I'm not sure that we should return errors in such way:
> >> ```
> >> tarantool> x
> >> {error = "[string \"return x\"]:1: variable \'x\' is not declared"};
> >> ```
> >
> > Yes. This allows to paste the result back to the console.
> > This is change in behaviour but while we're not claiming
> > that th lua mode is stable I think we can do so.
>
> Then it would be great to return it as
>
> error “[string \"return x\"]:1: variable \'x\' is not declared"
>
> or even better
>
> error [[[string "return x"]:1: variable 'x' is not declared]]
This breaks the idea of having output suitable for pasting back
to the console. Take a look on yaml ouput, I made the same.
...
>
> There is a possibility to take a length or result (select(‘#’,...))
Already fixed in v2 of the seies.
More information about the Tarantool-patches
mailing list