diff options
Diffstat (limited to 'cpp/test/IceSSL/configuration/AllTests.cpp')
-rw-r--r-- | cpp/test/IceSSL/configuration/AllTests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/test/IceSSL/configuration/AllTests.cpp b/cpp/test/IceSSL/configuration/AllTests.cpp index 6c9d80feb4c..7eaefdff373 100644 --- a/cpp/test/IceSSL/configuration/AllTests.cpp +++ b/cpp/test/IceSSL/configuration/AllTests.cpp @@ -85,7 +85,7 @@ readFile(const string& file, vector<char>& buffer) ifstream is(file.c_str(), ios::in | ios::binary); if(!is.good()) { - throw "error opening file " + file; + throw runtime_error("error opening file " + file); } is.seekg(0, is.end); @@ -96,7 +96,7 @@ readFile(const string& file, vector<char>& buffer) if(!is.good()) { - throw "error reading file " + file; + throw runtime_error("error reading file " + file); } } |