From 3e811e86d74631a3980002fc3f67ebd80af5fad6 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Mon, 23 Jun 2025 22:33:57 -0400 Subject: [PATCH] Decapitalize some error messages --- asn1.go | 4 ++-- asn1time.go | 2 +- loglist/load.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/asn1.go b/asn1.go index 6a90f3f..d50e495 100644 --- a/asn1.go +++ b/asn1.go @@ -46,7 +46,7 @@ func decodeASN1String(value *asn1.RawValue) (string, error) { if value.Tag == 12 { // UTF8String if !utf8.Valid(value.Bytes) { - return "", errors.New("Malformed UTF8String") + return "", errors.New("malformed UTF8String") } return string(value.Bytes), nil } else if value.Tag == 19 || value.Tag == 22 || value.Tag == 20 || value.Tag == 26 { @@ -74,5 +74,5 @@ func decodeASN1String(value *asn1.RawValue) (string, error) { return stringFromUint32Slice(runes), nil } } - return "", errors.New("Not a string") + return "", errors.New("not a string") } diff --git a/asn1time.go b/asn1time.go index 694bf7f..f356d14 100644 --- a/asn1time.go +++ b/asn1time.go @@ -253,5 +253,5 @@ func decodeASN1Time(value *asn1.RawValue) (time.Time, error) { return parseGeneralizedTime(value.Bytes) } } - return time.Time{}, errors.New("Not a time value") + return time.Time{}, errors.New("not a time value") } diff --git a/loglist/load.go b/loglist/load.go index 19a1f79..ebd402a 100644 --- a/loglist/load.go +++ b/loglist/load.go @@ -112,7 +112,7 @@ func Unmarshal(jsonBytes []byte) (*List, error) { return nil, err } if err := list.Validate(); err != nil { - return nil, fmt.Errorf("Invalid log list: %s", err) + return nil, fmt.Errorf("invalid log list: %s", err) } return list, nil }