Browse code

Fix error message in generic webhook

csrwng authored on 2014/11/18 06:35:43
Showing 2 changed files
... ...
@@ -34,7 +34,7 @@ type genericGitInfo struct {
34 34
 func (p *GenericWebHookPlugin) Extract(buildCfg *api.BuildConfig, secret, path string, req *http.Request) (build *api.Build, proceed bool, err error) {
35 35
 	trigger, ok := webhook.FindTriggerPolicy(api.GenericWebHookType, buildCfg)
36 36
 	if !ok {
37
-		err = fmt.Errorf("BuildConfig %s does not allow Github webhook type of triggers", buildCfg.Name)
37
+		err = fmt.Errorf("BuildConfig %s does not support the Generic webhook trigger type", buildCfg.Name)
38 38
 		return
39 39
 	}
40 40
 	if trigger.GenericWebHook.Secret != secret {
... ...
@@ -38,7 +38,7 @@ type gitHubPushEvent struct {
38 38
 func (p *GitHubWebHook) Extract(buildCfg *api.BuildConfig, secret, path string, req *http.Request) (build *api.Build, proceed bool, err error) {
39 39
 	trigger, ok := webhook.FindTriggerPolicy(api.GithubWebHookType, buildCfg)
40 40
 	if !ok {
41
-		err = fmt.Errorf("BuildConfig %s does not allow Github webhook type of triggers", buildCfg.Name)
41
+		err = fmt.Errorf("BuildConfig %s does not support the Github webhook trigger type", buildCfg.Name)
42 42
 		return
43 43
 	}
44 44
 	if trigger.GithubWebHook.Secret != secret {