mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
fix(desktop): return a generic clipboard copy error (#2361)
This commit is contained in:
1 parent
a53f5d1289
commit
6b5316fa84
1 file changed
+1
-1
@@ -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'};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user