Skip to content

Commit

Permalink
[CLI-46] capitalize first letter of each error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bright-poku committed Mar 3, 2021
1 parent eb8801a commit c6f966f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions internal/cli/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Lists your existing applications. To create one try:
})

if err != nil {
return fmt.Errorf("unexpected error occurred: %w", err)
return fmt.Errorf("An unexpected error occurred: %w", err)
}

cli.renderer.ApplicationList(list.Clients)
Expand Down Expand Up @@ -87,7 +87,7 @@ auth0 apps show <id>
input := prompt.TextInput(appID, "Id:", "Id of the application.", true)

if err := prompt.AskOne(input, &inputs); err != nil {
return fmt.Errorf("an unexpected error occurred: %w", err)
return fmt.Errorf("An unexpected error occurred: %w", err)
}
} else {
return errors.New("Please provide an application id")
Expand Down Expand Up @@ -139,7 +139,7 @@ auth0 apps delete <id>
input := prompt.TextInput(appID, "Id:", "Id of the application.", true)

if err := prompt.AskOne(input, &inputs); err != nil {
return fmt.Errorf("an unexpected error occurred: %w", err)
return fmt.Errorf("An unexpected error occurred: %w", err)
}
} else {
return errors.New("Please provide an application id")
Expand Down Expand Up @@ -190,7 +190,7 @@ auth0 apps create --name myapp --type [native|spa|regular|m2m]
true)

if err := prompt.AskOne(input, &flags); err != nil {
return fmt.Errorf("an unexpected error occurred: %w", err)
return fmt.Errorf("An unexpected error occurred: %w", err)
}
}

Expand All @@ -206,15 +206,15 @@ auth0 apps create --name myapp --type [native|spa|regular|m2m]
true)

if err := prompt.AskOne(input, &flags); err != nil {
return fmt.Errorf("an unexpected error occurred: %w", err)
return fmt.Errorf("An unexpected error occurred: %w", err)
}
}

if shouldPrompt(cmd, appDescription) {
input := prompt.TextInput(appDescription, "Description:", "Description of the application.", false)

if err := prompt.AskOne(input, &flags); err != nil {
return fmt.Errorf("an unexpected error occurred: %w", err)
return fmt.Errorf("An unexpected error occurred: %w", err)
}
}

Expand All @@ -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 @@ -283,7 +283,7 @@ auth0 apps update <id> --name myapp --type [native|spa|regular|m2m]
input := prompt.TextInput(appID, "Id:", "Id of the application.", true)

if err := prompt.AskOne(input, &inputs); err != nil {
return fmt.Errorf("an unexpected error occurred: %w", err)
return fmt.Errorf("An unexpected error occurred: %w", err)
}
} else {
return errors.New("Please provide an application id")
Expand All @@ -296,7 +296,7 @@ auth0 apps update <id> --name myapp --type [native|spa|regular|m2m]
input := prompt.TextInput(appName, "Name:", "Name of the application", true)

if err := prompt.AskOne(input, &inputs); err != nil {
return fmt.Errorf("an unexpected error occurred: %w", err)
return fmt.Errorf("An unexpected error occurred: %w", err)
}
}

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 c6f966f

Please sign in to comment.