Skip to content

Commit

Permalink
backend port conflict notification
Browse files Browse the repository at this point in the history
  • Loading branch information
truemiller committed Feb 20, 2024
1 parent 7c1bf7d commit a42eaf1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ const launchProcesses = async () => {
processes.backend.ready = true;
checkProcessesReadyThenMain();
}
if (data.toString().includes("error while attempting to bind on address")) {
// port in use
new Notification({
title: "Port in use",
body: `Port ${processes.backend.port} is in use. Please close the process using this port and restart Olas Operate.`,
}).show();
app.quit();
}
console.log(data.toString());
});

Expand Down

0 comments on commit a42eaf1

Please sign in to comment.