make unable to fetch user a warning message

This commit is contained in:
Benjamin Chess 2019-05-08 08:29:38 -07:00
parent 3f2fab10e6
commit 7179c5796a

View File

@ -186,7 +186,7 @@ func getAdminService(adminEmail string, credentialsReader io.Reader) *admin.Serv
func userInGroup(service *admin.Service, groups []string, email string) bool { func userInGroup(service *admin.Service, groups []string, email string) bool {
user, err := fetchUser(service, email) user, err := fetchUser(service, email)
if err != nil { if err != nil {
logger.Printf("error fetching user: %v", err) logger.Printf("Warning: unable to fetch user: %v", err)
user = nil user = nil
} }