mirror of
https://github.com/SSLMate/certspotter.git
synced 2025-12-17 12:34:18 +01:00
Fix missing Errorf parameter in merkletree
This commit is contained in:
@@ -34,7 +34,7 @@ func (h *Hash) UnmarshalJSON(b []byte) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if len(hashBytes) != HashLen {
|
if len(hashBytes) != HashLen {
|
||||||
return fmt.Errorf("Merkle Tree hash has wrong length (should be %d bytes long, not %d)", HashLen)
|
return fmt.Errorf("Merkle Tree hash has wrong length (should be %d bytes long, not %d)", HashLen, len(hashBytes))
|
||||||
}
|
}
|
||||||
copy(h[:], hashBytes)
|
copy(h[:], hashBytes)
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user