Add comprehensive error handling and recovery UI #173

Merged
talksik merged 11 commits from claude/electron-error-handling-tPCJO into master 2026-04-21 02:22:02 +00:00
5 changed files with 16 additions and 4 deletions
Showing only changes of commit ac6d5906eb - Show all commits
+1 -1
View File
@@ -1,5 +1,5 @@
import { z } from "zod";
import { appEnv } from "../config/env";
import { appEnv } from "@/config/env";
export class ApiError extends Error {
constructor(
+1 -1
View File
@@ -1,5 +1,5 @@
import { ipcMain, type IpcMainInvokeEvent } from "electron";
import { reportError } from "../lib/errors";
import { reportError } from "@/lib/errors";
type InvokeHandler = (
event: IpcMainInvokeEvent,
+2 -2
View File
@@ -1,7 +1,7 @@
import { app } from "electron";
import * as Sentry from "@sentry/electron/main";
import { appConfig } from "../config/env";
import { installErrorSinks } from "../lib/errors";
import { appConfig } from "@/config/env";
import { installErrorSinks } from "@/lib/errors";
/**
* Initialise Sentry for the main process. Captures uncaught exceptions from
+6
View File
@@ -1,7 +1,13 @@
import path from "path";
import { defineConfig } from 'vite';
import { defineEnv } from './vite.env';
// https://vitejs.dev/config
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
define: defineEnv,
});
+6
View File
@@ -1,7 +1,13 @@
import path from "path";
import { defineConfig } from 'vite';
import { defineEnv } from './vite.env';
// https://vitejs.dev/config
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
define: defineEnv,
});