Skip to content

fix(sharing): Surface specific error message on share update failure#59114

Open
nfebe wants to merge 1 commit intomasterfrom
fix/share-update-error-message
Open

fix(sharing): Surface specific error message on share update failure#59114
nfebe wants to merge 1 commit intomasterfrom
fix/share-update-error-message

Conversation

@nfebe
Copy link
Contributor

@nfebe nfebe commented Mar 21, 2026

InvalidArgumentException from the share manager (e.g. "Cannot enable sending the password by Talk with an empty password") was caught by the generic Exception handler and re-thrown as "Failed to update share.", hiding the actual cause from the user. Catch it separately to preserve the original message.

InvalidArgumentException from the share manager (e.g. "Cannot enable
sending the password by Talk with an empty password") was caught by
the generic Exception handler and re-thrown as "Failed to update
share.", hiding the actual cause from the user. Catch it separately
to preserve the original message.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
@nfebe nfebe requested a review from a team as a code owner March 21, 2026 00:03
@nfebe nfebe requested review from Altahrim, ArtificialOwl, CarlSchwan, artonge, icewind1991, provokateurin, skjnldsv, sushidave and szaimen and removed request for a team March 21, 2026 00:03
@nfebe nfebe added 3. to review Waiting for reviews feature: sharing labels Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant