counterintuitive error message when password to share does not conform to policy

The error message shown when a password does not conform to the password policy set in the security settings should give a better hint to the problem than "Error updating the share". As of now it gives the impression of a general problem.
I was extremely confused as well by this. There needs to be some better reporting based off this. Took me awhile to figure out what the error was because nothing was logged in regards to the password length.
I recommend that we give better insight as to why a share failed to share when it hits password policies.
cc @skjnldsv
cc @skjnldsv
I just stumbled across this when sharing a folder with a password. That is very confusing.
Hum, there is a tooltip on the password input too as far as I remember? :thinking:
@skjnldsv I don't see any tooltip. If I click outside the popup, it hides and then reappears with the error message. Hovering the mouse pointer over the edit control also doesn't display a tooltip.
Yep, there is supposed to be a tooltip on the input https://github.com/nextcloud/server/blob/699cbeb2fcc0f6bbaa12234e965900a5b27d52d2/apps/files_sharing/src/components/SharingEntryLink.vue#L180
Found the error
This is how it should behave

Ahh, that looks better. :)
fix in https://github.com/nextcloud/server/pull/20469
@skjnldsv Thanks!