FIX: throw an Exception if we don't specify a config file

This commit is contained in:
Juan José Gutiérrez de Quevedo Pérez 2014-09-05 11:57:22 +02:00
부모 f01b634ae3
커밋 62b6a5c5e0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -107,6 +107,8 @@ main
throw Exception(string(_("Config file "))+argv[1]+_(" doesn't exist or is not readable."),__FILE__,__LINE__);
cfg.parse(argv[1]);
}
else
throw Exception(_("Config file not specified"), __FILE__, __LINE__);
cfg.validateConfig();
}
catch(Exception &e)