mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 14:16:21 +00:00
926f6a3c72
This reverts commit d0ca4447c6c5642830354740d045f453eb3e77e8.
19 lines
286 B
Go
19 lines
286 B
Go
// +build debug
|
|
|
|
package stun
|
|
|
|
import "fmt"
|
|
|
|
// CRCMismatch represents CRC check error.
|
|
type CRCMismatch struct {
|
|
Expected uint32
|
|
Actual uint32
|
|
}
|
|
|
|
func (m CRCMismatch) Error() string {
|
|
return fmt.Sprintf("CRC mismatch: %x (expected) != %x (actual)",
|
|
m.Expected,
|
|
m.Actual,
|
|
)
|
|
}
|