]> WPIA git - cassiopeia.git/blobdiff - src/apps/signer.cpp
upd: only throwing exceptions now
[cassiopeia.git] / src / apps / signer.cpp
index 2b6798c935aa2f15893c5c059ed5135d640797e3..530c76ced00862f7c6264446ffae229e4d836e4c 100644 (file)
@@ -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;
 }