]> WPIA git - cassiopeia.git/commitdiff
minifixes
authorFelix Dörre <felix@dogcraft.de>
Thu, 30 Jun 2016 08:29:06 +0000 (10:29 +0200)
committerFelix Dörre <felix@dogcraft.de>
Thu, 30 Jun 2016 08:29:06 +0000 (10:29 +0200)
src/apps/client.cpp
src/util.cpp

index bfb7fb1688148e104ccfaaea1cb69fd9472f155f..9a7add6badb44fcb0a07817e50b070afa7057cc9 100644 (file)
@@ -166,8 +166,9 @@ int main( int argc, const char* argv[] ) {
                         continue;
                     }
 
-                    logger::note( "FINE: CERTIFICATE LOG:\n", res->log );
-                    logger::note( "FINE: CERTIFICATE:\n", res->certificate );
+                    logger::note( "FINE: CERTIFICATE LOG:\n", res->log,
+                                 "FINE: CERTIFICATE:\n", res->certificate );
+
                     std::string fn = writeBackFile( job->target.c_str(), res->certificate, keyDir );
 
                     if( fn.empty() ) {
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