Details
-
New Feature
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
Description
should print a more human-friendly error. Currently it prints:
panic: error initializing database session: error connecting to db server: no reachable servers
|
|
|
goroutine 16 [running]:
|
runtime.panic(0x63fb40, 0xc208001530)
|
/usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
|
github.com/shelman/mongo-tools-proto/common/util.Panicf(0x7430f0, 0x27, 0x2b7b387cced0, 0x1, 0x1)
|
/data/mci/shell/src/src/github.com/shelman/mongo-tools-proto/common/util/fmt.go:15 +0x92
|
main.main()
|
/data/mci/shell/src/src/github.com/shelman/mongo-tools-proto/mongoimport/main/mongoimport.go:43 +0x558
|
|
|
goroutine 19 [finalizer wait]:
|
runtime.park(0x4139b0, 0x894820, 0x893309)
|
/usr/local/go/src/pkg/runtime/proc.c:1369 +0x89
|
runtime.parkunlock(0x894820, 0x893309)
|
/usr/local/go/src/pkg/runtime/proc.c:1385 +0x3b
|
runfinq()
|
/usr/local/go/src/pkg/runtime/mgc0.c:2644 +0xcf
|
runtime.goexit()
|
/usr/local/go/src/pkg/runtime/proc.c:1445
|
...
|