Updated fallback message on new installations

This commit is contained in:
Mathias Wagner
2024-05-21 15:42:31 +02:00
parent d3827b7ca9
commit 627a64c58e
+5 -1
View File
@@ -58,7 +58,11 @@ const requestInterfaces = async () => {
const currentInterface = await config.getValue("interface");
if (!usableInterfaces[currentInterface]) {
console.warn(`Interface ${currentInterface} not found. Falling back to default.`);
if (!currentInterface) {
console.warn("No interface set. Falling back to default.");
} else {
console.warn(`Interface ${currentInterface} not found. Falling back to default.`);
}
await config.updateValue("interface", Object.keys(usableInterfaces)[0]);
}
}