Skip to content

Comments

fix: add LocalizedError for readable error messages#414

Merged
pwltr merged 2 commits intomasterfrom
fix/localized-error-descriptions
Jan 28, 2026
Merged

fix: add LocalizedError for readable error messages#414
pwltr merged 2 commits intomasterfrom
fix/localized-error-descriptions

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.
Copy link
Member

@jvsena42 jvsena42 left a comment

Choose a reason for hiding this comment

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

utAck

@piotr-iohk
Copy link
Collaborator

Run e2e locally for this one: passed ✅

@pwltr pwltr merged commit b4519e0 into master Jan 28, 2026
13 of 17 checks passed
@pwltr pwltr deleted the fix/localized-error-descriptions branch January 28, 2026 21:02
BitcoinErrorLog pushed a commit to BitcoinErrorLog/bitkit-ios that referenced this pull request Feb 7, 2026
…-descriptions

fix: add LocalizedError for readable error messages
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.

4 participants