about summary refs log tree commit diff
path: root/pkg/libs/source/errors.go
blob: cfcd9e32450d38095f126df38cc6037c9c39bf6b (plain)
1
2
3
4
5
6
7
8
9
10
package source

type ErrUnexpectedChar struct {
	Expected rune
	Actual   rune
}

func (e ErrUnexpectedChar) Error() string {
	return "unexpected character: expected " + string(e.Expected) + ", actual " + string(e.Actual)
}