Skip to main content

print_auth_error_hint

Function print_auth_error_hint 

Source
pub fn print_auth_error_hint(e: &FutuError, config: &RuntimeConfig)
Expand description

解析 auth error string + 给出对应 recovery hint (打到 stderr + tracing).

调用方在 Err(e) => { ... } match arm 内调用此 fn (替代 inline if-chain). 之后调用方按需做 if config.setup_only { return Err(...) } 控制流.