Changeset 4183


Ignore:
Timestamp:
06/24/10 07:37:08 (15 years ago)
Author:
Mathieu Morlighem
Message:

improved error messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/DataSet/DataSet.cpp

    r4182 r4183  
    468468        /*Carry out a binary search on the sorted_ids: */
    469469        if(!binary_search(&id_offset,eid, sorted_ids,objects.size())){
    470                 ISSMERROR("%s%i"," could not find object with id ",eid);
     470                ISSMERROR("could not find object with id %i in DataSet %s",eid,EnumAsString(enum_type));
    471471        }
    472472
     
    498498                        sid=node->Sid();
    499499                }
    500                 if (object->Enum()==VertexEnum){
     500                else if (object->Enum()==VertexEnum){
    501501                        Vertex* vertex=(Vertex*)object;
    502502                        sid=vertex->Sid();
     503                }
     504                else{
     505                        ISSMERROR("object %s not supported yet",EnumAsString(object->Enum()));
    503506                }
    504507                /*Plug rank into ranks, according to id: */
Note: See TracChangeset for help on using the changeset viewer.