Skip to content

Commit 627a64c

Browse files
committed
Updated fallback message on new installations
1 parent d3827b7 commit 627a64c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/util/loadInterfaces.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ const requestInterfaces = async () => {
5858
const currentInterface = await config.getValue("interface");
5959

6060
if (!usableInterfaces[currentInterface]) {
61-
console.warn(`Interface ${currentInterface} not found. Falling back to default.`);
61+
if (!currentInterface) {
62+
console.warn("No interface set. Falling back to default.");
63+
} else {
64+
console.warn(`Interface ${currentInterface} not found. Falling back to default.`);
65+
}
6266
await config.updateValue("interface", Object.keys(usableInterfaces)[0]);
6367
}
6468
}

0 commit comments

Comments
 (0)