-
Notifications
You must be signed in to change notification settings - Fork 16
[BUG FIX] add proper error message when PAT is incorrect. #515
Conversation
src/lib/i18n.json
Outdated
| "setup-cmd-prompt-err-no-subscriptions": "No subscriptions found.", | ||
| "setup-cmd-prompt-err-subscription-missing": "Subscription Identifier was missing.", | ||
| "setup-cmd-prompt-err-input-file-missing": "{0} did not exist or not accessible. Make sure that it is accessible.", | ||
| "setup-cmd-core-api-err": "Could not get Core API client. Check the Azure credential", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Core API is also for Azure DevOps. Let's be specific so we don't confuse the user between Azure and Azure DevOps here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you suggest a good message? thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same message as the other errors:
Something like
Could not initialize Core API client. Check the Azure DevOps credentials.
This is just being explicit about Azure vs Azure DevOps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, this one is for Azure and not Azure DevOps. the other 2 are for Azure DevOps. We are using PAT to authenticate for this one and using Service Principal for the other 2.
|
integration test results |
closes: microsoft/bedrock#1281
this is what we get when PAT is incorrect