Skip to content

Commit

Permalink
PR feedback: print workspace name in error; rephrase message
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Jun 15, 2023
1 parent d67f28e commit f4aa036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/varsetsList.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func runVarsetsList() {
if workspace != "" {
w, err := lib.GetWorkspaceByName(organization, workspace)
if err != nil {
errLog.Fatalf("error getting workspace from Terraform: %s", err)
errLog.Fatalf("error getting workspace %q from Terraform: %s", workspace, err)
}
workspaces = map[string]string{w.ID: workspace}
} else {
Expand All @@ -66,7 +66,7 @@ func runVarsetsList() {
if err != nil {
return
}
fmt.Printf("Variable sets applied to workspace %s:\n", name)
fmt.Printf("Workspace %s has the following variable sets:\n", name)
for _, set := range sets.Data {
fmt.Printf(" %s\n", set.Attributes.Name)
}
Expand Down

0 comments on commit f4aa036

Please sign in to comment.