Throw string
This commit is contained in:
parent
1a84ca7109
commit
c5b7ceff3e
@ -4,10 +4,10 @@
|
|||||||
config::config(const string _configFilePath, const vector<string> _necessary) {
|
config::config(const string _configFilePath, const vector<string> _necessary) {
|
||||||
necessary = _necessary;
|
necessary = _necessary;
|
||||||
if(!init(_configFilePath)) {
|
if(!init(_configFilePath)) {
|
||||||
throw "[ERROR] Init config file ";
|
throw string("[ERROR] Init config file ");
|
||||||
}
|
}
|
||||||
if (!isHaveNecessary()) {
|
if (!isHaveNecessary()) {
|
||||||
throw "[ERROR] Configuration file does not have all the required fields ";
|
throw string("[ERROR] Configuration file does not have all the required fields ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user