Skip to content

Commit 9fa2ba1

Browse files
committed
Prevent dev mode loop when build is incomplete
There's an infinite loop that happens only during dev mode, but it's annoying so worth fixing.
1 parent 6a1c2ac commit 9fa2ba1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/desktop/src/lib/backend/tauri.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@ class TauriDiskStore implements DiskStore {
9696
}
9797

9898
export async function tauriLogErrorToFile(error: string) {
99-
await logErrorToFile(error);
99+
try {
100+
await logErrorToFile(error);
101+
} catch (e: unknown) {
102+
console.warn('unable to log error to file', e);
103+
}
100104
}
101105

102106
export function tauriPathSeparator(): string {

0 commit comments

Comments
 (0)