ostap / comp

a tool for querying files in various formats
MIT License
43 stars 2 forks source link

no errors printed for invalid input in "server" mode #25

Closed julochrobak closed 10 years ago

julochrobak commented 11 years ago
$ cat error.json
[ {"id": 1}, {"name": "hello"} ]

$ bin/comp -f error.json 'error'
failed to load error.json: cannot find field name in [{id 0}] (hello)

$ bin/comp -f error.json -l :9090
2013/11/05 16:50:28.558239 main.go:58: running on 4 core(s)
2013/11/05 16:50:28.558395 main.go:59: adjusting runtime to run on 4 cores (old value 1)
2013/11/05 16:50:28.558631 store.go:113: available symbols:
2013/11/05 16:50:28.558688 main.go:69: garbage collecting (heap ~0MB)
2013/11/05 16:50:28.559072 main.go:72: done (heap ~0MB)
2013/11/05 16:50:28.559088 main.go:74: announcing :9090 /full /console /pprof

The comp does not load the file and only prints a message:

2013/11/05 16:50:28.558631 store.go:113: available symbols:

without giving more information about the invalid input file(s)

julochrobak commented 10 years ago

closed due to a duplicate issue created by a pull request - #33