Ignore:
Timestamp:
Mar 15, 2007, 10:44:41 PM (18 years ago)
Author:
cinc
Message:

Made wrong object pointers fatal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nom/src/nomdebug.c

    r256 r257  
    6060{
    6161  if(!nomObject)
    62     g_warning("The object used to call the method %s is not valid. A NULL pointer was given.", chrMethodName);
     62    g_error("The object used to call the method %s is not valid. A NULL pointer was given.", chrMethodName);
    6363  else{
    6464    if(!nomIsObj(nomObject))
    65       g_warning("The object used to call the method %s is not a valid NOM object. ", chrMethodName);
     65      g_error("The object used to call the method %s is not a valid NOM object. ", chrMethodName);
    6666    else
    67       g_warning("The object for which the method %s should be called is not valid for this method.\nThe object must be some instance of class %s (or of a subclass) but is a %s.", chrMethodName, NOMClass_nomGetCreatedClassName(nomClass, NULLHANDLE),
     67      g_error("The object for which the method %s should be called is not valid for this method.\nThe object must be some instance of class %s (or of a subclass) but is a %s.", chrMethodName, NOMClass_nomGetCreatedClassName(nomClass, NULLHANDLE),
    6868                NOMObject_nomGetClassName(nomObject, NULLHANDLE));
    6969  }
Note: See TracChangeset for help on using the changeset viewer.