Changeset 243

Show
Ignore:
Timestamp:
Mon Feb 6 07:30:34 2006
Author:
giovannibajo
Message:

Abort execution of the program if a runtime script fails

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/source/common/launch.c

    r242 r243  
    866 866                         /* Run it */  
    867 867                         rc = PyRun_SimpleString(data);  
    868                           /* log errors and go on */  
      868                         /* log errors and abort */  
    868 868                         if (rc != 0) {  
    869 869                                 sprintf(msg, " RC: %d from %s\n", rc, ptoc->name);  
    870 870                                 VS(msg);  
      871                                 return rc;  
    871 872                         }  
    872 873                         free(data);  
     
    876 877                 ptoc = incrementTocPtr(ptoc);  
    877 878         }  
    878           return rc;  
      879         return 0;  
    878 879 }  
    879 880