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

On wrongly formatted input file provide line number and more descriptive message #80

Open
kamran-redis opened this issue Sep 30, 2022 · 0 comments
Assignees

Comments

@kamran-redis
Copy link

In current version the message for wrongly formatted CSV line is opaque , provide line number and value number to trouble shoot easily.
Current message does not help

panic: runtime error: index out of range [5] with length 5

goroutine 114 [running]:
main.preProcessCmd(0xc000a08100, 0xf4, 0xc000276201, 0xc0009ffa70, 0x4, 0xc0009ffa74, 0x2, 0xc0009ffa77, 0xb, 0xc000b119c0, ...)
	/root/ftsb/cmd/ftsb_redisearch/cmd_processor.go:223 +0x5ef
main.connectionProcessor(0xc000130080, 0xc000012190, 0x0)
	/root/ftsb/cmd/ftsb_redisearch/cmd_processor.go:88 +0x9ef
created by main.(*processor).ProcessBatch
	/root/ftsb/cmd/ftsb_redisearch/cmd_processor.go:186 +0x1a6
@filipecosta90 filipecosta90 self-assigned this Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants