Index: /issm/trunk-jpl/src/c/classes/IoModel.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/IoModel.cpp	(revision 25144)
+++ /issm/trunk-jpl/src/c/classes/IoModel.cpp	(revision 25145)
@@ -596,5 +596,12 @@
 			}
 			if(record_name_size<3 || record_name_size>80){
-				_error_("error while looking in binary file. Found a string of size "<<record_name_size);
+				/*we are going to error out, still try and get informatoin for the user:*/
+				record_name=xNew<char>(record_name_size+1);
+				record_name[record_name_size]='\0';
+				
+				/*Read record_name: */
+				fread(record_name,record_name_size*sizeof(char),1,fid);
+				
+				_error_("error while looking in binary file. String " << record_name << " a string of size "<<record_name_size);
 			}
 
@@ -607,4 +614,5 @@
 				_error_("Could not read record name");
 			}
+
 			if(strncmp(record_name,mddot,3)!=0){
 				_error_("error while reading binary file: record does not start with \"md.\": "<<record_name);
