Skip to content

Commit

Permalink
Add root error when we try to add user
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBergmeier6176 committed Jun 22, 2023
1 parent a065c6f commit 36b21a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/organization_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 36b21a2

Please sign in to comment.