[cig-commits] r13571 - cs/cigma/trunk/src

luis at geodynamics.org luis at geodynamics.org
Tue Dec 9 18:14:44 PST 2008


Author: luis
Date: 2008-12-09 18:14:44 -0800 (Tue, 09 Dec 2008)
New Revision: 13571

Modified:
   cs/cigma/trunk/src/h5attr.cpp
Log:
Added more error messages with h5attr

Modified: cs/cigma/trunk/src/h5attr.cpp
===================================================================
--- cs/cigma/trunk/src/h5attr.cpp	2008-12-10 02:14:42 UTC (rev 13570)
+++ cs/cigma/trunk/src/h5attr.cpp	2008-12-10 02:14:44 UTC (rev 13571)
@@ -242,6 +242,7 @@
             else
             {
                 cout << "Error: Invalid type '" << attr_type << "'" << endl;
+                cout << "Known types are string, integer, float, double" << endl;
                 return -1;
             }
 
@@ -348,6 +349,10 @@
                 attr->read(H5::PredType::NATIVE_DOUBLE, &value);
                 cout << attr_name << " = " << value << endl;
             }
+            else
+            {
+                cout << "Error: No handler for typeclass " << typeclass << endl;
+            }
         }
         catch (H5::Exception error)
         {



More information about the CIG-COMMITS mailing list