Skip to content

NAS-141990 / 27.0.0-BETA.1 / api_client: fix midclt login-failure reporting - #84

Open
anodos325 wants to merge 1 commit into
masterfrom
fix-some-midclt-problems
Open

NAS-141990 / 27.0.0-BETA.1 / api_client: fix midclt login-failure reporting#84
anodos325 wants to merge 1 commit into
masterfrom
fix-some-midclt-problems

Conversation

@anodos325

Copy link
Copy Markdown
Contributor
  • Print login failures to stderr and exit 1 instead of stdout/exit 0, which made shell callers reading the exit code or stdout see success.
  • Replace the confusing ConfigParser error raised when key material isn't a raw key or JSON with a clear message naming the accepted formats. Diagnostics raised by _parse_ini_config itself are unchanged.

- Print login failures to stderr and exit 1 instead of stdout/exit 0,
  which made shell callers reading the exit code or stdout see success.
- Replace the confusing ConfigParser error raised when key material isn't
  a raw key or JSON with a clear message naming the accepted formats.
  Diagnostics raised by _parse_ini_config itself are unchanged.
@anodos325
anodos325 requested a review from themylogin July 29, 2026 13:22
@bugclerk bugclerk changed the title api_client: fix midclt login-failure reporting NAS-141990 / 27.0.0-BETA.1 / api_client: fix midclt login-failure reporting Jul 29, 2026
@bugclerk

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants