Skip to main content

parse_gitcode_error

Function parse_gitcode_error 

Source
pub fn parse_gitcode_error(stderr: &[u8]) -> PlatformCliError
Expand description

解析 gitcode CLI 的 stderr 输出为统一的 PlatformCliError。

优先尝试 JSON 格式解析(gitcode 在 API 错误时输出 JSON), 回退到纯文本模式。 用户可见消息为中文。