]> WPIA git - cassiopeia.git/blobdiff - src/config.cpp
upd: fix compilance issues
[cassiopeia.git] / src / config.cpp
index 4440d09f267e4fc81cf2cfc67f506aac5b21dd6b..164e0bbadef6e43eb989ddfad665833bfc4594a9 100644 (file)
@@ -23,7 +23,7 @@ std::shared_ptr<std::unordered_map<std::string, std::string>> parseConf( std::st
 
     if( !config.is_open() ) {
         logger::notef( "Where is \"%s\"?", path );
-        throw "Config missing";
+        throw std::runtime_error("Config missing");
     }
 
     std::string line1;
@@ -117,7 +117,7 @@ int parseProfiles() {
 
             closedir( dir );
         } else {
-            throw "Directory with CAConfigs not found";
+            throw std::runtime_error("Directory with CAConfigs not found");
         }
 
         profiles.emplace( profileName, prof );