tarantool/tarantool
Ver no GitHubMake space format errors more user-friendly
Open
#5.009 aberto em 21 de mai. de 2020
featuregood first issue
Métricas do repositório
- Stars
- (3.633 stars)
- Métricas de merge de PR
- (Mesclagem média 13d 2h) (82 fundiu PRs em 30d)
Description
Tarantool version: 2.5.0-16-g9f2819785 (all, in general)
Bug description:
Box.space errors usually say something like "Tuple field 27 required by space format is missing". Let's make it more user-friendly and print space name at least.
Steps to reproduce:
box.cfg({})
box.schema.space.create('test')
box.space.test:create_index('pk')
box.space.test:insert({'x'})
-- error: 'Tuple field 1 type does not match one required by operation: expected unsigned'
Because even with stacktrace it may be tricky to locate the source of problem in code