better logging

This commit is contained in:
Anthony Stirling 2025-10-31 10:22:57 +00:00
parent ba80ca1f67
commit f82b8a85c0
3 changed files with 14 additions and 2 deletions

View File

@ -121,7 +121,11 @@ public class InviteLinkController {
.body(
Map.of(
"error",
"Maximum number of users reached for your license"));
"License limit reached ("
+ (currentUserCount + activeInvites)
+ "/"
+ maxUsers
+ " users). Contact your administrator to upgrade your license."));
}
}

View File

@ -4525,7 +4525,8 @@
"copied": "Link copied to clipboard",
"success": "Invite link generated successfully",
"successWithEmail": "Invite link generated and sent via email",
"emailFailed": "Email failed to send",
"emailFailed": "Invite link generated, but email failed",
"emailFailedDetails": "Error: {0}. Please share the invite link manually.",
"error": "Failed to generate invite link"
},
"inviteMode": {

View File

@ -241,6 +241,13 @@ export default function PeopleSection() {
alertType: 'success',
title: t('workspace.people.inviteLink.successWithEmail', 'Invite link generated and email sent!')
});
} else if (inviteLinkForm.sendEmail && response.emailError) {
// Email was requested but failed
alert({
alertType: 'warning',
title: t('workspace.people.inviteLink.emailFailed', 'Invite link generated, but email failed'),
body: t('workspace.people.inviteLink.emailFailedDetails', 'Error: {0}. Please share the invite link manually.').replace('{0}', response.emailError)
});
} else {
alert({
alertType: 'success',