diff options
Diffstat (limited to 'Hutch/Views/Pastes/PasteListViewModel.swift')
| -rw-r--r-- | Hutch/Views/Pastes/PasteListViewModel.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Hutch/Views/Pastes/PasteListViewModel.swift b/Hutch/Views/Pastes/PasteListViewModel.swift index ee7d47a..cc2180d 100644 --- a/Hutch/Views/Pastes/PasteListViewModel.swift +++ b/Hutch/Views/Pastes/PasteListViewModel.swift @@ -41,7 +41,7 @@ final class PasteListViewModel { hasMore = page.cursor != nil } catch { if pastes.isEmpty { - self.error = error.localizedDescription + self.error = error.userFacingMessage } } @@ -66,7 +66,7 @@ final class PasteListViewModel { cursor = page.cursor hasMore = page.cursor != nil } catch { - self.error = error.localizedDescription + self.error = error.userFacingMessage } } @@ -90,7 +90,7 @@ final class PasteListViewModel { upsertPaste(paste) return paste } catch { - self.error = error.localizedDescription + self.error = error.userFacingMessage return nil } } |
