]> WPIA git - cassiopeia.git/blobdiff - src/util.cpp
minifixes
[cassiopeia.git] / src / util.cpp
index 3197b68eedcaf2a907a3b493e43cb5adbb8ce28d..30f87b77e1569b53bfc396cdbdb56d2676a2e230 100644 (file)
@@ -29,7 +29,7 @@ std::string writeBackFile( const std::string& serial, const std::string& cert, c
 
     if( 0 != mkdir( filename.c_str(), 0755 ) ) {
         if( EEXIST != errno ) {
-            return "";
+            throw std::runtime_error("Storage location could not be determined");
         }
 
         //! \FIXME: Check this is a directory