fix(desktop): return a generic clipboard copy error (#2361)

This commit is contained in:
Hampus
2026-09-02 17:26:57 +02:00
committed by GitHub
parent a53f5d1289
commit 6b5316fa84
+1 -1
View File
@@ -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'};
}
}