mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2024-11-27 07:49:52 +08:00
Catch exception by reference
This commit is contained in:
parent
2c6d86a6b9
commit
1eafd5f5c9
@ -149,7 +149,7 @@ int main(void)
|
||||
//cout << "*** SUCCESS reading example file sfc_pres_temp.nc!" << endl;
|
||||
return 0;
|
||||
}
|
||||
catch(NcException e)
|
||||
catch(NcException& e)
|
||||
{
|
||||
cout<<"FAILURE**************************\n";
|
||||
cout << e.what() << endl;
|
||||
|
Loading…
Reference in New Issue
Block a user