From 530f7d513eb30fe4a8f0295a9a61449379650fc7 Mon Sep 17 00:00:00 2001 From: Jeremy Levy Date: Tue, 31 May 2022 16:47:30 +0200 Subject: [PATCH] Improve invalid user config error wording --- internal/presenters/errors.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/presenters/errors.go b/internal/presenters/errors.go index 102b8b2..08aa162 100644 --- a/internal/presenters/errors.go +++ b/internal/presenters/errors.go @@ -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,