@@ -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