You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: improve error message for generic openid-client error MONGOSH-2487
Similar to previous commits, this change ensures that diagnostic information
is not lost through recent changes to openid-client's error system, where
currently a number of errors are grouped together under "something went wrong"
(https://github.com/panva/openid-client/blob/a1e4a4fd88fcdff12d88e3ff73f3e27fe5df4252/src/index.ts#L975)
and the library expects consumers to consistently expose the `cause` property
of the error object.
This also unifies the two existing `messageFromError` and `errorString`
implementations, which happened to duplicate each other.
`Unable to fetch issuer metadata for "https://localhost:${port}/": something went wrong (caused by: request to https://localhost:${port}/.well-known/openid-configuration failed, reason: self-signed certificate`
0 commit comments