Skip to content

Conversation

@stepan662
Copy link
Contributor

No description provided.

@stepan662 stepan662 requested a review from JanCizmar January 22, 2025 17:02
@stepan662 stepan662 marked this pull request as ready for review January 22, 2025 17:02
`Not authenticated for host ${ansi.blue(opts.apiUrl.hostname)} and project ${ansi.blue(opts.projectId)}.`
);
info(
`You must either provide api key via --api-key or login via \`tolgee login\` (for correct api url and project)`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`You must either provide api key via --api-key or login via \`tolgee login\` (for correct api url and project)`
`You must either provide api key via --api-key or login via \`tolgee login\` for specific API URL and project`

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CLI should also have a command which prints out for which projects (with their names) is the user currently logged in. I would also print this list when this error is printed out.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, done

@stepan662 stepan662 force-pushed the stepangranat/improve-cli-errors branch from 5e118a9 to 52f17c6 Compare February 18, 2025 15:48
@stepan662 stepan662 requested a review from JanCizmar February 18, 2025 16:06
@JanCizmar JanCizmar merged commit c3f5fad into main Feb 19, 2025
14 checks passed
@JanCizmar JanCizmar deleted the stepangranat/improve-cli-errors branch February 19, 2025 13:15
@github-actions
Copy link

🎉 This PR is included in version 2.8.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants