lomax: Better error messages on misconfigured input.
Closed this issue · 1 comments
simar7 commented
Currently upon a misconfigured test bench with an option either missing or ill-defined, the testbench throws the following error:
➜ lomax git:(master) ✗ ./lomax --vector=openstack-generic-test-select.json --config=openstack-generic-config.json
panic: interface conversion: interface is nil, not int
goroutine 1 [running]:
runtime.panic(0x6011a0, 0xc21004f5c0)
/usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
main.initPtrs()
/home/simar/syseng/gocode/src/github.com/opendns/lemming/lomax/lomax.go:75 +0x2ad
main.main()
/home/simar/syseng/gocode/src/github.com/opendns/lemming/lomax/lomax.go:298 +0x35
This isn't very informative and the user wouldn't really know what went wrong. We need to give better error messages.