]> WPIA git - cassiopeia.git/blobdiff - src/util.cpp
upd: only throwing exceptions now
[cassiopeia.git] / src / util.cpp
index 40fcf25ac0dc2f5c9c6cbb3a6ab839404c20921d..3197b68eedcaf2a907a3b493e43cb5adbb8ce28d 100644 (file)
@@ -190,7 +190,7 @@ std::unique_ptr<std::ofstream> openLogfile( const std::string &name ) {
     auto res = std::make_unique<std::ofstream>( tname );
 
     if( ! res->good() ) {
-        throw std::string( "Failed to open file for logging: " ) + name;
+        throw std::runtime_error( std::string("Failed to open file for logging: " ) + name );
     }
 
     return res;