From 6b5316fa8423e6cdb46b4efeaefa2cdb33d41023 Mon Sep 17 00:00:00 2001 From: Hampus Date: Wed, 2 Sep 2026 17:26:57 +0200 Subject: [PATCH] fix(desktop): return a generic clipboard copy error (#2361) --- fluxer_desktop/src/main/MediaClipboard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluxer_desktop/src/main/MediaClipboard.ts b/fluxer_desktop/src/main/MediaClipboard.ts index aa08a15a5..84b234c05 100644 --- a/fluxer_desktop/src/main/MediaClipboard.ts +++ b/fluxer_desktop/src/main/MediaClipboard.ts @@ -284,6 +284,6 @@ export async function copyRemoteFileToClipboard(options: ClipboardWriteFileOptio } catch (error) { await fs.rm(itemDir, {recursive: true, force: true}).catch(() => undefined); logger.warn('Failed to copy remote file to clipboard', {error}); - return {success: false, error: error instanceof Error ? error.message : 'Unknown error'}; + return {success: false, error: 'Failed to copy file to clipboard'}; } }