summaryrefslogtreecommitdiff
path: root/Hutch/Views/Pastes/PasteListViewModel.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-03-19 16:59:16 -0500
committerChristian Cleberg <[email protected]>2026-03-19 16:59:16 -0500
commitb82bbeeea48ad27832a355c2a41408559c411104 (patch)
tree0af45101300c75970471573b09f878a1b3763b38 /Hutch/Views/Pastes/PasteListViewModel.swift
parent9065ef6e92245a44390e336cc1ae515ae706cdd7 (diff)
downloadhutch-b82bbeeea48ad27832a355c2a41408559c411104.tar.gz
hutch-b82bbeeea48ad27832a355c2a41408559c411104.tar.bz2
hutch-b82bbeeea48ad27832a355c2a41408559c411104.zip
v2.1: bundled polish and fixes
Diffstat (limited to 'Hutch/Views/Pastes/PasteListViewModel.swift')
-rw-r--r--Hutch/Views/Pastes/PasteListViewModel.swift6
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
}
}