summaryrefslogtreecommitdiff
path: root/vendor/github.com/pion/stun/fingerprint_debug.go
blob: 6da074cd8f3b369364aea8840c18a2267b8d8a0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// +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,
	)
}