X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Fconfig.cpp;h=a4d32848ecb7de4e3e4609adc5a83e997d927d47;hb=6121035a7d8ea738bc89c2de8e6602fb1099b0e2;hp=4440d09f267e4fc81cf2cfc67f506aac5b21dd6b;hpb=1867e1ad94f4549869b23a68851caf34cfbf8e8b;p=cassiopeia.git diff --git a/src/config.cpp b/src/config.cpp index 4440d09..a4d3284 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -23,7 +23,7 @@ std::shared_ptr> 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 );