X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Fapps%2Fsigner.cpp;h=530c76ced00862f7c6264446ffae229e4d836e4c;hb=e0713d1539887566e0ea7d85942c305ec727c9dd;hp=2b6798c935aa2f15893c5c059ed5135d640797e3;hpb=44fdd6ec4486e0224d11324383b7a99d89e550d2;p=cassiopeia.git diff --git a/src/apps/signer.cpp b/src/apps/signer.cpp index 2b6798c..530c76c 100644 --- a/src/apps/signer.cpp +++ b/src/apps/signer.cpp @@ -59,10 +59,8 @@ int main( int argc, const char* argv[] ) try { dh->handle(); //} catch( const std::exception &ch ) { //std::cout << "Real exception: " << typeid(ch).name() << ", " << ch.what() << std::endl; - } catch( const std::string& ch ) { - logger::error( "Exception: ", ch ); - } catch( char const* ch ) { - logger::error( "Exception: ", ch ); + } catch( const std::exception& e ) { + logger::error( "Exception: ", e.what() ); } } @@ -71,7 +69,4 @@ int main( int argc, const char* argv[] ) try { } catch( std::exception& e ) { logger::fatalf( "Fatal Error: %s!\n", e.what() ); return -1; -} catch( ... ) { - logger::fatal( "Fatal Error: Unknown Exception!\n" ); - return -1; }