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

这个提交包含在:
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)