aboutsummaryrefslogtreecommitdiffstats
path: root/modules/private/branch.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private/branch.go')
-rw-r--r--modules/private/branch.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/private/branch.go b/modules/private/branch.go
index fed66d29ff..cadbf6c88c 100644
--- a/modules/private/branch.go
+++ b/modules/private/branch.go
@@ -33,7 +33,7 @@ func GetProtectedBranchBy(repoID int64, branchName string) (*models.ProtectedBra
// All 2XX status codes are accepted and others will return an error
if resp.StatusCode/100 != 2 {
- return nil, fmt.Errorf("Failed to update public key: %s", decodeJSONError(resp).Err)
+ return nil, fmt.Errorf("Failed to get protected branch: %s", decodeJSONError(resp).Err)
}
return &branch, nil