We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 449a841 commit 683a3feCopy full SHA for 683a3fe
1 file changed
check-commit/check.go
@@ -83,7 +83,7 @@ func checkSubjectText(subject string) error {
83
subjectPartsLen := len(subjectParts)
84
85
if subject != strings.Join(subjectParts, " ") {
86
- log.Printf("malformatted subject string (trailing or double spaces?): '%s'\n", subject)
+ return fmt.Errorf("malformatted subject string (trailing or double spaces?): '%s' (%w)", subject, ErrSubjectMessageFormat)
87
}
88
89
if subjectPartsLen < minSubjectParts || subjectPartsLen > maxSubjectParts {
0 commit comments