Skip to content

Commit 6a1ac15

Browse files
author
FileShot
committed
fix: add missing catch block in drag handler
1 parent dd99721 commit 6a1ac15

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,8 @@ ipcMain.on('start-drag', async (event, paths) => {
457457
} catch (_) {
458458
wc.startDrag({ file: dragFiles[0], icon });
459459
}
460+
} catch (err) {
461+
console.error('Drag operation failed:', err);
460462
}
461463
});
462464

0 commit comments

Comments
 (0)