From 0290b5e91861e55a86e5aed5f8001c6c37365f1f Mon Sep 17 00:00:00 2001 From: themester Date: Wed, 4 Jul 2018 01:31:48 +0200 Subject: [PATCH] Added Error function to users --- users.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/users.go b/users.go index 0099ab1a..195b35bc 100644 --- a/users.go +++ b/users.go @@ -80,6 +80,11 @@ func (users *Users) Next() bool { return false } +// Error returns users error +func (users *Users) Error() error { + return users.err +} + func (users *Users) setValues() { for i := range users.Users { users.Users[i].inst = users.inst