summaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/errors.go b/errors.go
index 2d8820e..e71d79a 100644
--- a/errors.go
+++ b/errors.go
@@ -76,6 +76,10 @@ func (e *DecodeTypeError) Error() string {
func (e *DecodeTypeError) Unwrap() error { return e.Err }
+var (
+ ErrDecodeNonEmptyInterface = errors.New("cannot decode in to non-empty interface")
+)
+
// high-level decode errors ////////////////////////////////////////////////////////////////////////
// A *DecodeArgumentError is returned from Decode if the argument is