Skip to content

Commit

Permalink
Improve invalid user config error wording
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylevy committed May 31, 2022
1 parent d74f42e commit 530f7d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/presenters/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ func (RecodeViewableErrorBuilder) Build(err error) (viewableError *ViewableError
}

if typedError, ok := err.(entities.ErrInvalidDevEnvUserConfig); ok {
viewableError.Title = "Invalid repository configuration"
viewableError.Title = "Invalid user configuration"

bold := constants.Bold
viewableError.Message = fmt.Sprintf(
"The repository \"%s/%s\" contains an invalid configuration.\n\nReason: %s",
"The repository \"%s/%s\" contains an invalid configuration.\n\n"+bold("Reason:")+" %s",
typedError.RepoOwner,
entities.DevEnvUserConfigRepoName,
typedError.Reason,
Expand Down

0 comments on commit 530f7d5

Please # to comment.