Skip to content

Commit

Permalink
update: fix typo in error config_not_on_master (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadsella authored Jul 10, 2023
1 parent f38556b commit e7f9b28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/cdep/app/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion tools/cdep/cdep.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit e7f9b28

Please sign in to comment.