diff --git a/tool/tctl/common/tctl.go b/tool/tctl/common/tctl.go index 336a37dc0b671..9fafc313bae52 100644 --- a/tool/tctl/common/tctl.go +++ b/tool/tctl/common/tctl.go @@ -192,9 +192,10 @@ func TryRun(commands []CLICommand, args []string) error { if utils.IsUntrustedCertErr(err) { err = trace.WrapWithMessage(err, utils.SelfSignedCertsMsg) } - log.Errorf("Cannot connect to the auth server. Is the auth server running on %q? %v", - cfg.AuthServerAddresses()[0].Addr, err) - return trace.NewAggregate(&toolcommon.ExitCodeError{Code: 1}, err) + fmt.Fprintf(os.Stderr, + "ERROR: Cannot connect to the auth server. Is the auth server running on %q?\n", + cfg.AuthServerAddresses()[0].Addr) + return trace.NewAggregate(&common.ExitCodeError{Code: 1}, err) } // execute whatever is selected: