if( !config.is_open() ) {
logger::notef( "Where is \"%s\"?", path );
- throw "Config missing";
+ throw std::runtime_error("Config missing");
}
std::string line1;
closedir( dir );
} else {
- throw "Directory with CAConfigs not found";
+ throw std::runtime_error("Directory with CAConfigs not found");
}
profiles.emplace( profileName, prof );