Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tt connect console ignores syntax errors #1064

Open
locker opened this issue Dec 11, 2024 · 0 comments
Open

tt connect console ignores syntax errors #1064

locker opened this issue Dec 11, 2024 · 0 comments
Labels
2sp bug Something isn't working teamE

Comments

@locker
Copy link
Member

locker commented Dec 11, 2024

Bug description

In contrast to the built-in Tarantool console module, tt connect console doesn't raise any error if the input string contains syntax errors. Instead it returns null.

Version

Tarantool CLI version 2.6.0, linux/amd64. commit: 96db068 (v2.6.0-10-g96db0688623b)

Steps to reproduce

  1. Create a test instance.

    tt init
    tt create single_instance --name test
    tt start
  2. Connect to the console.

    tt connect test:instance001
  3. Type an invalid Lua string.

    hello)
    

Actual behavior

test:instance001> hello)
---
- null
...

Expected behavior

test:instance001> hello)
---
- error: '[string "hello)"]:1: ''='' expected near '')'''
...
@locker locker added the bug Something isn't working label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2sp bug Something isn't working teamE
Projects
None yet
Development

No branches or pull requests

2 participants