Skip to content

Commit 9987255

Browse files
committed
feat: log reason for failed websocket requests
1 parent b00348e commit 9987255

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/lib/stores/launcher.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ const connectToLauncher = () => {
2020
ws.on('disconnect', () => {
2121
launcherOpen.set(false);
2222
});
23-
}).catch(console.error);
23+
24+
ws.on('connect_error', () => {
25+
console.warn("Could not contact user's local Satisfactory Mod Manager install");
26+
});
27+
}).catch(console.warn);
2428
};
2529

2630
const open = (link: string, fallback?: () => void) => {

0 commit comments

Comments
 (0)