Skip to content

fix: improve default error handling #1379 #1409#1439

Draft
Alexj9837 wants to merge 3 commits intomainfrom
chore/improve-default-error-handling-1379-1409
Draft

fix: improve default error handling #1379 #1409#1439
Alexj9837 wants to merge 3 commits intomainfrom
chore/improve-default-error-handling-1379-1409

Conversation

@Alexj9837
Copy link

Fixes #1379
Fixes #1409

Both issues related to error handling in the REST client.

1379 - Catches 'UnauthorisedAccessErrorexplicitly instead of string-matching onBlueskyRemoteControlError`.

1409 - Expands the exception hierarchy so each
HTTP status code raises a distinct typed exception rather than bundling
everything into BlueskyRemoteControlError.

Tests

  • Update tests to match new exception signatures
  • Add missing coverage for 422 non-list detail response
  • Add missing coverage for streaming error in run command

@Alexj9837 Alexj9837 self-assigned this Mar 10, 2026
@Alexj9837 Alexj9837 force-pushed the chore/improve-default-error-handling-1379-1409 branch from accdd8c to c5ab6b3 Compare March 10, 2026 14:20
@codecov
Copy link

codecov bot commented Mar 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.26%. Comparing base (485e0f8) to head (05150ae).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1439      +/-   ##
==========================================
+ Coverage   95.19%   95.26%   +0.07%     
==========================================
  Files          43       43              
  Lines        3119     3125       +6     
==========================================
+ Hits         2969     2977       +8     
+ Misses        150      148       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Alexj9837 Alexj9837 force-pushed the chore/improve-default-error-handling-1379-1409 branch from c5ab6b3 to 883b09e Compare March 11, 2026 09:39
@Alexj9837 Alexj9837 removed their assignment Mar 11, 2026
@Alexj9837 Alexj9837 force-pushed the chore/improve-default-error-handling-1379-1409 branch from 883b09e to 05150ae Compare March 11, 2026 11:06
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.

Improve default error handling Remove stacktrace from error message when not logged into CLI

1 participant