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
{{ message }}
Repository navigation
NamedError hides data.message: Error.message is set to the tag name #31414
NamedError — the base class for the serialized error union (ProviderAuthError, UnknownError, APIError, etc.) — sets Error.message to its own tag name. Its constructor calls super(name), so every instance ends up with Error.message === Error.name.
Because Cause.pretty and Error.prototype.toString() render an error as ${name}: ${message}, this comes out as ProviderAuthError: ProviderAuthError, and the real data.message is never shown.
Steps to reproduce
Construct any NamedError, e.g. new ProviderAuthError({ providerID, message: "invalid token" }).
Render it via Cause.pretty(Cause.fail(err)) or err.toString().
Observe "ProviderAuthError: ProviderAuthError" — the "invalid token" detail is hidden.
Activity
github-actions commentedon Jun 8, 2026
This issue might be a duplicate of or closely related to existing issues. Please check:
causeand stack fromProviderInitError, hiding root cause #24430: Session error path dropscauseand stack fromProviderInitError, hiding root cause — also involvesNamedError/UnknownErrorswallowing error details and making failures undebuggablegithub-actions commentedon Aug 9, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.