Skip to main content

extract_spawn_gate_provider

Function extract_spawn_gate_provider 

Source
fn extract_spawn_gate_provider(combined: &str) -> Option<String>
Expand description

Pulls the provider id out of SpawnGateError::MissingCredentials’s own Display wording (“no credentials for {provider}: the bound account was deleted or is unresolvable. Bind an account for this provider in Connectors → Accounts.” — identity/resolver/errors.rs). Returns None on any mismatch (e.g. that wording drifts) rather than guessing — callers fall back to generic phrasing instead of asserting a specific, possibly wrong, provider name.