windows: Improve error message for credential write failures (#46221)

Release Notes:

- Improved Display the actual Windows error message when writing
credentials to Credential Manager fails, instead of the generic "Failed
to write API key to keychain" message. This helps users diagnose issues
like permission problems.

Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
cfa478dde4Xiaobo Liu committed on 1/8/2026, 10:01:42 AM· committed by GitHubparent7e39e15
1 file changedLine totals unavailable