From ce9fca67ed74850c9f006df1e1d379aae0ef3686 Mon Sep 17 00:00:00 2001 From: Anchal Agrawal Date: Thu, 7 Sep 2017 11:01:32 -0500 Subject: [PATCH] Add error and logging UX improvements for PSC (#761) --- installer/fileserver/server.go | 2 +- installer/fileserver/tasks.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/fileserver/server.go b/installer/fileserver/server.go index 41d50ca69c..4db4694aa4 100644 --- a/installer/fileserver/server.go +++ b/installer/fileserver/server.go @@ -252,7 +252,7 @@ func startInitializationServices() string { if err := registerWithPSC(ctx); err != nil { log.Debug(errors.ErrorStack(err)) - errorMsg = append(errorMsg, "Failed to register with PSC: %s", err.Error()) + errorMsg = append(errorMsg, "Failed to register with PSC. Please check the vSphere user domain PSC settings and try again") } if len(errorMsg) == 0 { diff --git a/installer/fileserver/tasks.go b/installer/fileserver/tasks.go index e3fa96704f..79b72bdb47 100644 --- a/installer/fileserver/tasks.go +++ b/installer/fileserver/tasks.go @@ -116,7 +116,7 @@ func registerWithPSC(ctx context.Context) error { // This runs the PSC tool's register command. cmd := exec.Command(cmdName, cmdArgs...) if output, err := cmd.CombinedOutput(); err != nil { - log.Infof("Error running PSC register command: %s", string(output)) + log.Infof("Error running PSC register command for %s: %s", client, string(output)) return err } log.Infof("Successfully registered %s with PSC", client)