This commit is contained in:
Jeff Mitchell committed 2020-10-06 13:17:28 -04:00
1 parent 54332c5da9
commit b76cc95425
8 files changed
+43 -43

No files matched your search

@@ -192,7 +192,7 @@ func (s Service) createInRepo(ctx context.Context, scopeId string, item *pb.Auth
}
out, err := repo.CreateAuthMethod(ctx, u)
if err != nil {
return nil,fmt.Errorf("unable to create auth method: %w", err)
return nil, fmt.Errorf("unable to create auth method: %w", err)
}
if out == nil {
return nil, handlers.ApiErrorWithCodeAndMessage(codes.Internal, "Unable to create auth method but no error returned from repository.")