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
Copy Markdown
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
@szaimen
Copy link
Copy Markdown
Contributor

szaimen commented Mar 25, 2026

Hi @nfebe is there a test plan available before and after what this fixes?

@susnux
Copy link
Copy Markdown
Contributor

susnux commented Mar 27, 2026

hiding the actual cause from the user

But the message is not localized and should not shown to the user anyways?
So its only for debugging and for debugging we already log an error message?

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.

3 participants