Commit 89c6af1
committed
fix(sharing): Surface specific error message on share update failure
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>1 parent 8c6d314 commit 89c6af1
File tree
1 file changed
+2
-0
lines changed- apps/files_sharing/lib/Controller
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1390 | 1390 | | |
1391 | 1391 | | |
1392 | 1392 | | |
| 1393 | + | |
| 1394 | + | |
1393 | 1395 | | |
1394 | 1396 | | |
1395 | 1397 | | |
| |||
0 commit comments