Skip to content

Commit b8ca75b

Browse files
wolfogredelvh
andauthored
Update services/actions/commit_status.go
Co-authored-by: delvh <[email protected]>
1 parent 3222b78 commit b8ca75b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/actions/commit_status.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ func CreateCommitStatus(ctx context.Context, job *actions_model.ActionRunJob) er
3333
// Since the payload comes from json data, we should check if it's broken, or it will cause panic
3434
switch {
3535
case payload.Repo == nil:
36-
return fmt.Errorf("miss Repo in event payload")
36+
return fmt.Errorf("repo is missing in event payload")
3737
case payload.Pusher == nil:
38-
return fmt.Errorf("miss Pusher in event payload")
38+
return fmt.Errorf("pusher is missing in event payload")
3939
case payload.HeadCommit == nil:
40-
return fmt.Errorf("miss HeadCommit in event payload")
40+
return fmt.Errorf("head commit is missing in event payload")
4141
}
4242

4343
creator, err := user_model.GetUserByID(ctx, payload.Pusher.ID)

0 commit comments

Comments
 (0)