Skip to content

Commit

Permalink
Merge pull request #3775 from pachyderm/fix-config-generation-output
Browse files Browse the repository at this point in the history
Fix config generation output
  • Loading branch information
gabrielgrant committed May 31, 2019
2 parents 5af0c21 + 239960d commit 2213694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ func Read() (*Config, error) {
}
} else if os.IsNotExist(err) {
// File doesn't exist, so create a new config
fmt.Println("no config detected at %q. Generating new config...", p)
fmt.Fprintf(os.Stderr, "No config detected at %q. Generating new config...\n", p)
c = &Config{}
} else {
return nil, fmt.Errorf("fatal: could not read config at %q: %v", p, err)
}
if c.UserID == "" {
fmt.Printf("No UserID present in config. Generating new UserID and "+
fmt.Fprintf(os.Stderr, "No UserID present in config. Generating new UserID and "+
"updating config at %s\n", p)
uuid, err := uuid.NewV4()
if err != nil {
Expand Down

0 comments on commit 2213694

Please sign in to comment.