Skip to content

Nicer error messages for migrating users#106

Merged
sergei1152 merged 1 commit into
mainfrom
serj.better_error_messages_with_legacy_credentials
May 18, 2026
Merged

Nicer error messages for migrating users#106
sergei1152 merged 1 commit into
mainfrom
serj.better_error_messages_with_legacy_credentials

Conversation

@sergei1152
Copy link
Copy Markdown
Contributor

@sergei1152 sergei1152 commented May 18, 2026

The error message for a user that still had the old auth method but trying to use the new account api was like "please use parallel-cli login" which is confusing since they are already authenticated. Change the error message to detect this case and make it friendlier.

This is the output now:

Authentication required: This operation requires Account API credentials, but your stored credentials only authorize the standard Parallel API. Re-run 'parallel-cli login' to authenticate against the Account API.

For normal users that never had the original cli installed we will show:

Authentication required: not logged in; run 'parallel-cli login'

@sergei1152 sergei1152 merged commit fdf3c84 into main May 18, 2026
7 checks passed
@sergei1152 sergei1152 deleted the serj.better_error_messages_with_legacy_credentials branch May 18, 2026 18:56
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.

2 participants