summaryrefslogtreecommitdiffstats
path: root/c++/examples/h5tutr_crtatt.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2017-09-14 19:33:40 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2017-09-14 19:33:40 (GMT)
commit5cf381597dddc2f551a344a102a4975ea0d373af (patch)
tree8ebefabe80872042b441cfb34e740e6c44f5a8ea /c++/examples/h5tutr_crtatt.cpp
parenta6151aa4f29fcb85047112f436fa21fde8f0da7b (diff)
downloadhdf5-5cf381597dddc2f551a344a102a4975ea0d373af.zip
hdf5-5cf381597dddc2f551a344a102a4975ea0d373af.tar.gz
hdf5-5cf381597dddc2f551a344a102a4975ea0d373af.tar.bz2
Fixed incorrect calls
Description: Replaced the calls to the deprecated function printError with printErrorStack in examples. Platforms tested: Linux/32 2.6 (jam)
Diffstat (limited to 'c++/examples/h5tutr_crtatt.cpp')
-rw-r--r--c++/examples/h5tutr_crtatt.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/c++/examples/h5tutr_crtatt.cpp b/c++/examples/h5tutr_crtatt.cpp
index db34353..f865501 100644
--- a/c++/examples/h5tutr_crtatt.cpp
+++ b/c++/examples/h5tutr_crtatt.cpp
@@ -59,28 +59,28 @@ int main (void)
// catch failure caused by the H5File operations
catch( DataSpaceIException error )
{
- error.printError();
+ error.printErrorStack();
return -1;
}
// catch failure caused by the H5File operations
catch( AttributeIException error )
{
- error.printError();
+ error.printErrorStack();
return -1;
}
// catch failure caused by the H5File operations
catch( FileIException error )
{
- error.printError();
+ error.printErrorStack();
return -1;
}
// catch failure caused by the DataSet operations
catch( DataSetIException error )
{
- error.printError();
+ error.printErrorStack();
return -1;
}