FIX: throw an Exception if we don't specify a config file
This commit is contained in:
parent
f01b634ae3
commit
62b6a5c5e0
|
@ -107,6 +107,8 @@ main
|
||||||
throw Exception(string(_("Config file "))+argv[1]+_(" doesn't exist or is not readable."),__FILE__,__LINE__);
|
throw Exception(string(_("Config file "))+argv[1]+_(" doesn't exist or is not readable."),__FILE__,__LINE__);
|
||||||
cfg.parse(argv[1]);
|
cfg.parse(argv[1]);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
throw Exception(_("Config file not specified"), __FILE__, __LINE__);
|
||||||
cfg.validateConfig();
|
cfg.validateConfig();
|
||||||
}
|
}
|
||||||
catch(Exception &e)
|
catch(Exception &e)
|
||||||
|
|
Loading…
Reference in a new issue