diff options
Diffstat (limited to 'internal/feed/meta.go')
-rw-r--r-- | internal/feed/meta.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/feed/meta.go b/internal/feed/meta.go index da2849d..cb7d7a5 100644 --- a/internal/feed/meta.go +++ b/internal/feed/meta.go @@ -74,7 +74,7 @@ func NewMeta(r io.Reader) (*Meta, error) { case "sha256": // check hash length if len(pair[1]) != 64 { - return nil, fmt.Errorf("invalid sha256 hash length: \"%d\"", len(pair[1])) + return nil, fmt.Errorf("invalid sha256 hash length: %d", len(pair[1])) } // decode hex, check for error @@ -86,7 +86,7 @@ func NewMeta(r io.Reader) (*Meta, error) { // save to buffer, check for error len := copy(m.Sha256[:], buf[0:32]) if len != 32 { - return nil, fmt.Errorf("invalid sha256 hash length: %d", len) + return nil, fmt.Errorf("invalid sha256 hash copy length: %d", len) } default: // return error |