From 36b21a2427b023809ff78ece90b8c4deeacfeb6d Mon Sep 17 00:00:00 2001 From: Andreas Bergmeier Date: Thu, 22 Jun 2023 11:22:05 +0200 Subject: [PATCH] Add root error when we try to add user --- internal/controller/organization_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/organization_controller.go b/internal/controller/organization_controller.go index 8a4f429..71856e5 100644 --- a/internal/controller/organization_controller.go +++ b/internal/controller/organization_controller.go @@ -176,7 +176,7 @@ type orgUserAddError struct { } func (err *orgUserAddError) Error() string { - return fmt.Sprintf("adding User (email: %s) to Organization (id: %d) failed", err.Email, err.OrgID) + return fmt.Sprintf("adding User (email: %s) to Organization (id: %d) failed: %s", err.Email, err.OrgID, err.error) } func (r *OrganizationReconciler) addMissingUsers(ctx context.Context, client *gapi.Client, users []missingUserConfig) error {