From e7f9b2876121b2e7c42c50ad08a871a4d39798db Mon Sep 17 00:00:00 2001 From: Nadja Summerscales-Gunn <34297763+nadsella@users.noreply.github.com> Date: Mon, 10 Jul 2023 16:42:23 +0100 Subject: [PATCH] update: fix typo in error config_not_on_master (#766) --- tools/cdep/app/update.go | 2 +- tools/cdep/cdep.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cdep/app/update.go b/tools/cdep/app/update.go index 0c4d605..c42520f 100644 --- a/tools/cdep/app/update.go +++ b/tools/cdep/app/update.go @@ -69,7 +69,7 @@ func (a App) Update(ctx context.Context, req *parsers.Params, overruleChecks []s defaultRef := fmt.Sprintf("refs/heads/%s", cdep.DefaultBranch) if ref.Name().String() != defaultRef { - return cher.New("config_not_on_mater", nil) + return cher.New("config_not_on_master", nil) } log.Info("pulling config repo from remote") diff --git a/tools/cdep/cdep.go b/tools/cdep/cdep.go index 684a516..b36cb4c 100644 --- a/tools/cdep/cdep.go +++ b/tools/cdep/cdep.go @@ -6,7 +6,7 @@ const Version = "0.6" const DefaultBranch = "master" var ErrorCodeMapping = map[string]string{ - "config_not_on_mater": "Your config repo is not on master, please swap your HEAD back to master.", + "config_not_on_master": "Your config repo is not on master, please swap your HEAD back to master.", "frozen_without_commit": "We found a resource where the config is locked, but no commit is specified.", "frozen": "The resource you're trying to update is currently frozen.", "nothing_changed": "Running this tool has resulted in no change.",