Updated other exception to also be runtime_error type instead.

This commit is contained in:
Adam 2015-06-02 19:14:52 -04:00
parent 894792e1e1
commit 06889be239

View File

@ -616,7 +616,7 @@ void doSomethingWithAFile(const char* filename)
{
FILE* fh = fopen(filename, "r"); // Open the file in read mode
if (fh == nullptr)
throw std::exception();
throw std::runtime_error("Could not open the file.");
try {
doSomethingWithTheFile(fh);