fix: log errors

pull/243/head
Josh Moore 1 year ago
parent fc31a48bbb
commit 30dfd386c6

@ -22,7 +22,11 @@ const Checkers: UserConfigTypeChecker = {
: fs.mkdirSync(val); : fs.mkdirSync(val);
return true; return true;
} }
catch (err) { return false; } catch (err) {
log.warn('Cannot access directory', `${val}`);
console.error(err);
return false;
}
}, },
idType: (val) => { idType: (val) => {
const options = ['random', 'original', 'gfycat', 'timestamp', 'zws']; const options = ['random', 'original', 'gfycat', 'timestamp', 'zws'];

Loading…
Cancel
Save