Index: /issm/trunk/src/c/DataSet/DataSet.cpp
===================================================================
--- /issm/trunk/src/c/DataSet/DataSet.cpp	(revision 4182)
+++ /issm/trunk/src/c/DataSet/DataSet.cpp	(revision 4183)
@@ -468,5 +468,5 @@
 	/*Carry out a binary search on the sorted_ids: */
 	if(!binary_search(&id_offset,eid, sorted_ids,objects.size())){
-		ISSMERROR("%s%i"," could not find object with id ",eid);
+		ISSMERROR("could not find object with id %i in DataSet %s",eid,EnumAsString(enum_type));
 	}
 
@@ -498,7 +498,10 @@
 			sid=node->Sid();
 		}
-		if (object->Enum()==VertexEnum){
+		else if (object->Enum()==VertexEnum){
 			Vertex* vertex=(Vertex*)object;
 			sid=vertex->Sid();
+		}
+		else{
+			ISSMERROR("object %s not supported yet",EnumAsString(object->Enum()));
 		}
 		/*Plug rank into ranks, according to id: */
