print err when server can't start

This commit is contained in:
Derek Collison
2012-12-05 17:04:33 -08:00
parent a6cdc53144
commit 99ef5ad55c

View File

@@ -36,7 +36,7 @@ func startServer(t tLogger, port int, other string) *natsServer {
err := s.cmd.Start()
if err != nil {
s.cmd = nil
t.Errorf("Could not start <%s>, is NATS installed and in path?", natsServerExe)
t.Errorf("Could not start <%s> [%s], is NATS installed and in path?", natsServerExe, err)
return &s
}
// Give it time to start up