Skip to content

Conversation

@ben-kaufman
Copy link
Contributor

@ben-kaufman ben-kaufman commented Jan 28, 2026

Description

This PR fixes error toasts that previously showed unhelpful messages like "The operation couldn't be completed. (Bitkit.CustomServiceError error 1.)".

Custom error enums now conform to LocalizedError and provide human-readable error descriptions that are displayed to users.

Linked Issues/Tasks

N/A

Screenshot / Video

Before:

IMG_9256

After:
Simulator Screenshot - iPhone 16 - 2026-01-27 at 19 13 31

@claude

This comment has been minimized.

Custom error enums (CustomServiceError, KeychainError) now conform to
LocalizedError and provide human-readable errorDescription.

Previously, these errors displayed as "The operation couldn't be completed.
(Bitkit.CustomServiceError error 1.)" which was not helpful to users.
@ben-kaufman ben-kaufman force-pushed the fix/localized-error-descriptions branch from 7dff720 to df1c0d3 Compare January 28, 2026 01:17
CancellationError is thrown when tasks are cancelled (e.g., user navigates
away during sync). This is expected behavior and shouldn't show an error
toast to the user.
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