Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/update-checker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function UpdateChecker({ checkSignal }: UpdateCheckerProps) {
toast.dismiss('update-check');
}

const raw = caught instanceof Error ? caught.message : 'Failed to check for updates.';
const raw = caught instanceof Error ? caught.message : String(caught);
// Tauri updater throws when the endpoint is unreachable or returns invalid
// data. Map the common Rust error substrings to friendlier messages.
const lower = raw.toLowerCase();
Expand All @@ -111,7 +111,7 @@ export function UpdateChecker({ checkSignal }: UpdateCheckerProps) {
: lower.includes('signature') ||
lower.includes('verify') ||
lower.includes('verification') ||
lower.includes('invalid')
lower.includes('invalid update proxy url')
? 'Update verification failed. Please try again later.'
: raw;
setStatus('error');
Expand Down