X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Fapps%2Fclient.cpp;h=3d4c339907e9f0a38391a6b73e3d40a03f23ab8b;hb=e8f8107bdd0d1149117f06e10b145ef00d5543fb;hp=e30803e690ba333e6c0f828df4e9675a9a7f89ed;hpb=f69f31caeda734d6d9c8ab00e693671ac7512bea;p=cassiopeia.git diff --git a/src/apps/client.cpp b/src/apps/client.cpp index e30803e..3d4c339 100644 --- a/src/apps/client.cpp +++ b/src/apps/client.cpp @@ -159,6 +159,7 @@ int main( int argc, const char* argv[] ) { log << "FINE: CERTIFICATE LOG: " << res->log << std::endl; log << "FINE: CERTIFICATE:" << std::endl << res->certificate << std::endl; std::string fn = writeBackFile( job->target.c_str(), res->certificate, keyDir ); + if( fn.empty() ) { log << "ERROR: Writeback of the certificate failed." << std::endl; jp->failJob( job );