aboutsummaryrefslogtreecommitdiffstats
path: root/entity/err.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-12-08 21:15:06 +0100
committerMichael Muré <batolettre@gmail.com>2019-12-08 21:28:27 +0100
commitb92adfcb5f79f2b32c3dafb0fc3e7f1b753b6197 (patch)
tree69202c4021b10f3ab7b7f5ebf229d501e95c4786 /entity/err.go
parent981a4a848b1329da1a73270e27633911f9298bb1 (diff)
downloadgit-bug-b92adfcb5f79f2b32c3dafb0fc3e7f1b753b6197.tar.gz
bridge: huge refactor to accept multiple kind of credentials
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
+}