Skip to content

refactor: show error message#233

Open
v-alexmoraru wants to merge 8 commits intomicrosoft:mainfrom
v-alexmoraru:dev/v-alexmoraru/show-error-message
Open

refactor: show error message#233
v-alexmoraru wants to merge 8 commits intomicrosoft:mainfrom
v-alexmoraru:dev/v-alexmoraru/show-error-message

Conversation

@v-alexmoraru
Copy link
Copy Markdown
Member

Shows Fabric API error message more explicitly.

@v-alexmoraru v-alexmoraru requested a review from a team as a code owner May 7, 2026 05:51
Copilot AI review requested due to automatic review settings May 7, 2026 06:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates FabricAPIError to better surface raw error bodies when the Fabric API response can’t be parsed as JSON, and avoids printing a “Request Id” line when the ID is missing.

Changes:

  • Wrap Fabric API error-body parsing in a try/except to fall back to the raw response text on JSONDecodeError.
  • Only append “Request Id” to the formatted message when a request id is present.

Comment thread src/fabric_cli/core/fab_exceptions.py
Comment thread src/fabric_cli/core/fab_exceptions.py
@v-alexmoraru v-alexmoraru changed the title Show error message fix: show error message May 7, 2026
Copilot AI review requested due to automatic review settings May 7, 2026 07:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

Comment thread src/fabric_cli/core/fab_exceptions.py Outdated
Comment thread tests/test_utils/test_fab_custom_exception.py Outdated
Comment thread tests/test_utils/test_fab_custom_exception.py Outdated
Comment thread tests/test_utils/test_fab_custom_exception.py Outdated
Comment thread tests/test_utils/test_fab_custom_exception.py Outdated
Comment thread tests/test_utils/test_fab_custom_exception.py Outdated
Copilot AI review requested due to automatic review settings May 7, 2026 07:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment thread src/fabric_cli/core/fab_exceptions.py Outdated
Comment thread tests/test_utils/test_fab_custom_exception.py Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 7, 2026 07:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment thread src/fabric_cli/core/fab_exceptions.py
Comment thread .changes/unreleased/optimization-20260507-101040.yaml
@v-alexmoraru v-alexmoraru changed the title fix: show error message refactor: show error message May 7, 2026
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