Compare commits
2 Commits
d0e3507cc0
...
2a121d27ee
Author | SHA1 | Date |
---|---|---|
knotteye | 2a121d27ee | |
knotteye | cc8c4915f9 |
|
@ -4,7 +4,17 @@ try {
|
||||||
var localconfig: Object = parse(read('config/config.yml'));
|
var localconfig: Object = parse(read('config/config.yml'));
|
||||||
console.log('Config file found.');
|
console.log('Config file found.');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log('No config file found. Exiting.');
|
if(e['reason']) {
|
||||||
|
console.log('Error parsing config on line '+e['mark']['line']+', with reason: '+e['reason']);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
console.log('Config Error: '+e['code']);
|
||||||
|
switch(e['code']){
|
||||||
|
case 'ENOENT':
|
||||||
|
console.log('Does the file exist?');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
const config: Object = {
|
const config: Object = {
|
||||||
|
|
Reference in New Issue