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). 调用方随后 fail closed;无凭据启动才是受支持的 offline mode。