Fix recursive error Sprintf

This commit is contained in:
2023-12-26 15:10:06 -06:00
parent 2a5789e758
commit dfe9de53a7
2 changed files with 8 additions and 5 deletions

View File

@@ -11,11 +11,11 @@ type UnsubscribeUnexpectedError struct {
}
func (e ChecksumMissingError) Error() string {
return fmt.Sprintf("checksum missing: %x", e)
return fmt.Sprintf("checksum missing: %x", []byte(e[:]))
}
func (e ChecksumInvalidError) Error() string {
return fmt.Sprintf("checksum invalid: %x", e)
return fmt.Sprintf("checksum invalid: %x", []byte(e[:]))
}
func (e UnsubscribeRejectedError) Error() string {