Skip to content

Commit

Permalink
minor revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
iynere committed Apr 11, 2019
1 parent 162738a commit 256e77b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ func setupDiagnosticCheck(opts setupOptions) {
fmt.Println("Ok.")
}

fmt.Printf("Trying to query your username given the provided token... ")
fmt.Printf("Trying to query our API for your profile name... ")
responseWho, err := api.WhoamiQuery(opts.cl)

if err != nil {
fmt.Println("\nUnable to make a query against the GraphQL API, please check your settings.")
fmt.Println("\nUnable to query our API for your profile name, please check your settings.")
// If user does not have a name set in their VCS, let's just say hi :)
} else if responseWho.Me.Name == "" {
fmt.Printf("Hello!")
Expand Down
8 changes: 4 additions & 4 deletions cmd/setup_unit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Setup complete.
Your configuration has been saved to %s.
Trying an introspection query on API to verify your setup... Ok.
Trying to query your username given the provided token... Hello, %s.
Trying to query our API for your profile name... Hello, %s.
`, tempSettings.Config.Path, `zomg`)))

tempSettings.AssertConfigRereadMatches(fmt.Sprintf(`host: %s
Expand Down Expand Up @@ -162,7 +162,7 @@ Setup complete.
Your configuration has been saved to %s.
Trying an introspection query on API to verify your setup... Ok.
Trying to query your username given the provided token... Hello, %s.
Trying to query our API for your profile name... Hello, %s.
`, tempSettings.Config.Path, `zomg`)))

tempSettings.AssertConfigRereadMatches(fmt.Sprintf(`host: %s
Expand Down Expand Up @@ -242,7 +242,7 @@ Your configuration has been saved to %s.
Trying an introspection query on API to verify your setup...
Unable to make a query against the GraphQL API, please check your settings.
Trying to query your username given the provided token... Hello, %s.
Trying to query our API for your profile name... Hello, %s.
`, tempSettings.Config.Path, `zomg`)))
})
})
Expand Down Expand Up @@ -316,7 +316,7 @@ Setup complete.
Your configuration has been saved to %s.
Trying an introspection query on API to verify your setup... Ok.
Trying to query your username given the provided token...
Trying to query our API for your profile name...
Unable to make a query against the GraphQL API, please check your settings.
`, tempSettings.Config.Path)))
})
Expand Down

0 comments on commit 256e77b

Please sign in to comment.