From 21cf956a26a0b5ee34cf150ee0ae3a1239c468be Mon Sep 17 00:00:00 2001 From: Azareal Date: Thu, 6 Dec 2018 22:16:09 +1000 Subject: [PATCH] Move this bit in there too. --- common/user_store.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/user_store.go b/common/user_store.go index 33e0d8e2..d62b173a 100644 --- a/common/user_store.go +++ b/common/user_store.go @@ -211,9 +211,8 @@ func (mus *DefaultUserStore) BulkGetMap(ids []int) (list map[int]*User, err erro } if sidList != "" { sidList = sidList[0 : len(sidList)-1] + err = errors.New("Unable to find the users with the following IDs: " + sidList) } - - err = errors.New("Unable to find the users with the following IDs: " + sidList) } return list, err