From b92adfcb5f79f2b32c3dafb0fc3e7f1b753b6197 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 8 Dec 2019 21:15:06 +0100 Subject: bridge: huge refactor to accept multiple kind of credentials --- entity/err.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'entity/err.go') 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 +} -- cgit