Skip to content

Commit a2e9d45

Browse files
committed
fix: some errors
1 parent 8d4528a commit a2e9d45

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

electron-app/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ app.whenReady().then(async () => {
5757
logger.electron.header("Backend process spawned");
5858
} catch (error) {
5959
// Start backend already shows these errors
60-
return;
6160
}
6261

6362
// Create main application window

electron-app/src/processes/backend.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ async function startBackend(logWindow = null) {
5454
logger.backend.error(`Backend binary not found: ${backendBin}`);
5555
dialog.showErrorBox(
5656
"Error",
57-
`Backend binary not found at: ${backendBin}`
57+
`Backend binary not found at: ${backendBin}`,
5858
);
5959
return reject(new Error(`Backend binary not found: ${backendBin}`));
6060
}
6161

6262
logger.backend.info(
63-
`Starting backend: ${backendBin}, config: ${configPath}`
63+
`Starting backend: ${backendBin}, config: ${configPath}`,
6464
);
6565

6666
// Set working directory to backend/cmd in development, or resources in production
@@ -88,7 +88,7 @@ async function startBackend(logWindow = null) {
8888
backendProcess.stderr.on("data", (data) => {
8989
const errorMsg = data.toString().trim();
9090
logger.backend.error(errorMsg);
91-
if (errorMsg) lastBackendError = errorMsg;
91+
lastBackendError = errorMsg;
9292

9393
// Send error message to log window
9494
if (currentLogWindow && !currentLogWindow.isDestroyed()) {
@@ -102,7 +102,7 @@ async function startBackend(logWindow = null) {
102102
logger.backend.error(`Failed to start backend: ${error.message}`);
103103
dialog.showErrorBox(
104104
"Backend Error",
105-
`Failed to start backend: ${error.message}`
105+
`Failed to start backend: ${error.message}`,
106106
);
107107
return reject(new Error(`Failed to start backend: ${error.message}`));
108108
});
@@ -166,7 +166,7 @@ async function stopBackend() {
166166
const fallbackTimer = setTimeout(() => {
167167
if (localBackendProcess && !localBackendProcess.killed) {
168168
logger.backend.warning(
169-
"Backend did not exit gracefully, force killing..."
169+
"Backend did not exit gracefully, force killing...",
170170
);
171171
localBackendProcess.kill("SIGKILL");
172172
}

0 commit comments

Comments
 (0)