Improve error message

This commit is contained in:
LJNeon 2022-10-01 17:08:34 -07:00
parent d7d953c425
commit fb0f0040a5
No known key found for this signature in database
GPG key ID: 837C6B23D22030BE

View file

@ -21,7 +21,7 @@ export async function setupWatch(signaller: Signal) {
await mkdir(resolve(config.get("scriptsFolder")));
} catch (err) {
if (isError(err) && err.code !== "EEXIST") {
console.log(`Unable to create folder '${config.get("scriptsFolder")}', exiting...`);
console.log(`Failed to watch folder '${config.get("scriptsFolder")}' (${err.code})`);
process.exit();
}
}