X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Fapps%2Fclient.cpp;fp=src%2Fapps%2Fclient.cpp;h=96e5b67442bf94046cb01dba31e3a9c25f0fc56b;hb=284fe577c65bbdda151d80e2261617a4c7119ed5;hp=71d41dbd2ccf98e3e6d17ed7b152dac69a44e793;hpb=e8abb7ca28c05c91fef58d23c40d3f2b1d5322ff;p=cassiopeia.git diff --git a/src/apps/client.cpp b/src/apps/client.cpp index 71d41db..96e5b67 100644 --- a/src/apps/client.cpp +++ b/src/apps/client.cpp @@ -110,8 +110,12 @@ int main( int argc, const char* argv[] ) { lastCRLCheck = current; } - std::shared_ptr job = jp->fetchJob(); - + std::shared_ptr job; + try { + job = jp->fetchJob(); + } catch ( std::exception &e ){ + logger::errorf ( "Exception while fetchJob: %s", e.what() ); + } if( !job ) { logger::note( "Nothing to work on." ); sleep( 5 );