Constify caught exceptions

pull/157/head
Jeffrey Walton 2016-04-09 19:18:57 -04:00
parent 6f8abd089c
commit 5d84f04ae3
1 changed files with 3 additions and 3 deletions

View File

@ -782,15 +782,15 @@ void TestDataFile(std::string filename, const NameValuePairs &overrideParameters
SignalTestError();
failed = false;
}
catch (TestFailure &)
catch (const TestFailure &)
{
cout << "\nTest failed.\n";
}
catch (CryptoPP::Exception &e)
catch (const CryptoPP::Exception &e)
{
cout << "\nCryptoPP::Exception caught: " << e.what() << endl;
}
catch (std::exception &e)
catch (const std::exception &e)
{
cout << "\nstd::exception caught: " << e.what() << endl;
}