Better error message if there is no accessSync (which there isn't on old node)
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ var skin = args._[0];
|
|||||||
try {
|
try {
|
||||||
fs.accessSync(path.join('src', 'skins', skin), fs.F_OK);
|
fs.accessSync(path.join('src', 'skins', skin), fs.F_OK);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("Skin "+skin+" not found");
|
console.log("Skin "+skin+" not found: "+e);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user