Skip to content

Preserve ecode in authentication error responses - #55

Merged
jiegec merged 1 commit into
masterfrom
issue-54-ecode
Jul 20, 2026
Merged

Preserve ecode in authentication error responses#55
jiegec merged 1 commit into
masterfrom
issue-54-ecode

Conversation

@jiegec

@jiegec jiegec commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Closes #54

Add a PortalError type that carries both error code and message,
so callers can reliably distinguish error types (password wrong,
rate limited, account disabled, etc.) without parsing Chinese text.

Closes #54
@jiegec
jiegec merged commit 3730e25 into master Jul 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

保留认证失败响应中的 ecode,便于外部程序可靠处理错误

1 participant