Coverity fixes: uncaught exceptions
This commit is contained in:
+5
-1
@@ -135,7 +135,11 @@ int main( int argc, char *argv[] )
|
||||
verbose = true;
|
||||
}
|
||||
|
||||
try {
|
||||
test_base64();
|
||||
|
||||
} catch ( const std::exception &e ) {
|
||||
fprintf( stderr, "Error: %s\r\n", e.what() );
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -544,8 +544,12 @@ int main( int argc, char *argv[] )
|
||||
verbose = true;
|
||||
}
|
||||
|
||||
try {
|
||||
test_all_vectors();
|
||||
test_iterative();
|
||||
|
||||
} catch ( const std::exception &e ) {
|
||||
fprintf( stderr, "Error: %s\r\n", e.what() );
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user