We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6ae0e6 commit 6441e96Copy full SHA for 6441e96
1 file changed
electron/ipc/handlers.ts
@@ -501,8 +501,9 @@ export function registerIpcHandlers(
501
});
502
503
ipcMain.handle("read-binary-file", async (_, inputPath: string) => {
504
+ let normalizedPath: string | null = null;
505
try {
- const normalizedPath = normalizeVideoSourcePath(inputPath);
506
+ normalizedPath = normalizeVideoSourcePath(inputPath);
507
if (!normalizedPath) {
508
return { success: false, message: "Invalid file path" };
509
}
@@ -527,6 +528,7 @@ export function registerIpcHandlers(
527
528
success: false,
529
message: "Failed to read binary file",
530
error: String(error),
531
+ path: normalizedPath,
532
};
533
534
0 commit comments