mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
print err when server can't start
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user