aboutsummaryrefslogtreecommitdiffstats
path: root/entity/err.go
diff options
context:
space:
mode:
Diffstat (limited to 'entity/err.go')
-rw-r--r--entity/err.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/entity/err.go b/entity/err.go
index 7022305c..7d6c662e 100644
--- a/entity/err.go
+++ b/entity/err.go
@@ -25,3 +25,8 @@ func (e ErrMultipleMatch) Error() string {
e.entityType,
strings.Join(matching, "\n"))
}
+
+func IsErrMultipleMatch(err error) bool {
+ _, ok := err.(*ErrMultipleMatch)
+ return ok
+}