Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
Added Error function to users
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrr committed Jul 3, 2018
1 parent 92e5e3b commit 0290b5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions users.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0290b5e

Please sign in to comment.