Skip to content

Commit

Permalink
[CLI-46] refactored error message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bright-poku committed Mar 3, 2021
1 parent c6f966f commit 399bb77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cli/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ auth0 apps show <id>
})

if err != nil {
return fmt.Errorf("Unable to load application. The ID %v specified doesn't exist", inputs.ID)
return fmt.Errorf("Unable to load application. The id %v specified doesn't exist", inputs.ID)
}

revealClientSecret := auth0.StringValue(a.AppType) != "native" && auth0.StringValue(a.AppType) != "spa"
Expand Down Expand Up @@ -231,7 +231,7 @@ auth0 apps create --name myapp --type [native|spa|regular|m2m]
})

if err != nil {
return fmt.Errorf("Unable to create application %w", err)
return fmt.Errorf("Unable to create application: %w", err)
}

// note: c is populated with the rest of the client fields by the API during creation.
Expand Down Expand Up @@ -337,7 +337,7 @@ auth0 apps update <id> --name myapp --type [native|spa|regular|m2m]
})

if err != nil {
return fmt.Errorf("Unable to update application %v %v", inputs.ID, err)
return fmt.Errorf("Unable to update application %v: %v", inputs.ID, err)
}

// note: c is populated with the rest of the client fields by the API during creation.
Expand Down

0 comments on commit 399bb77

Please sign in to comment.