fix some ENOENT errors on first launch

This commit is contained in:
Vendicated
2025-10-23 02:53:13 +02:00
parent 800a97105c
commit 3aa0bb806e
2 changed files with 7 additions and 1 deletions
+6 -1
View File
@@ -63,7 +63,12 @@ export function createFirstLaunchTour() {
copyFileSync(join(from, file), join(to, file));
}
} catch (e) {
console.error("Failed to import settings:", e);
if (e instanceof Error && "code" in e && e.code === "ENOENT") {
console.log("No Vencord settings found to import.");
return;
}
console.error("Failed to import Vencord settings:", e);
}
}