Constify caught exceptions
parent
6f8abd089c
commit
5d84f04ae3
|
|
@ -782,15 +782,15 @@ void TestDataFile(std::string filename, const NameValuePairs &overrideParameters
|
||||||
SignalTestError();
|
SignalTestError();
|
||||||
failed = false;
|
failed = false;
|
||||||
}
|
}
|
||||||
catch (TestFailure &)
|
catch (const TestFailure &)
|
||||||
{
|
{
|
||||||
cout << "\nTest failed.\n";
|
cout << "\nTest failed.\n";
|
||||||
}
|
}
|
||||||
catch (CryptoPP::Exception &e)
|
catch (const CryptoPP::Exception &e)
|
||||||
{
|
{
|
||||||
cout << "\nCryptoPP::Exception caught: " << e.what() << endl;
|
cout << "\nCryptoPP::Exception caught: " << e.what() << endl;
|
||||||
}
|
}
|
||||||
catch (std::exception &e)
|
catch (const std::exception &e)
|
||||||
{
|
{
|
||||||
cout << "\nstd::exception caught: " << e.what() << endl;
|
cout << "\nstd::exception caught: " << e.what() << endl;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue