Corrected a couple issues.

This commit is contained in:
Ward Fisher 2016-03-28 11:01:32 -06:00
parent 077f76345e
commit edb2fb877e
2 changed files with 1 additions and 2 deletions

View File

@ -29,7 +29,6 @@ int main() {
return -1;
} catch(NcException &e) {
cout << "Caught Expected Exception." << endl;
return e.errorCode();
}
// Test opening a file that exists.

View File

@ -560,6 +560,6 @@ catch (NcException& e)
{
cout << "unknown error"<<endl;
cout << e.what();
exit e.errorCode();
exit(e.errorCode());
}
}