Changeset 332
- Timestamp:
- Sep 8, 2011, 1:43:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal_python.c
r295 r332 138 138 if(PyString_Check(trace)){ 139 139 char *tpbt=strdup(pbt); 140 sprintf(pbt,"%s\n TRACE :%s",tpbt,PyString_AsString(trace));140 sprintf(pbt,"%s\n%s",tpbt,PyString_AsString(trace)); 141 141 free(tpbt); 142 142 } 143 143 else 144 144 fprintf(stderr,"EMPTY TRACE ?"); 145 146 char *tpbt=strdup(pbt); 145 147 pName = PyString_FromString("traceback"); 146 148 pModule = PyImport_Import(pName); … … 152 154 trace=PyObject_Str(pValue); 153 155 if(PyString_Check(trace)) 154 sprintf(pbt,"%s\nUnable to run your python process properly. Please check the following messages : %s", pbt,PyString_AsString(trace));156 sprintf(pbt,"%s\nUnable to run your python process properly. Please check the following messages : %s",tpbt,PyString_AsString(trace)); 155 157 else 156 sprintf(pbt,"%s \n Unable to run your python process properly. Unable to provide any futher informations.",pbt); 158 sprintf(pbt,"%s \n Unable to run your python process properly. Unable to provide any futher informations. %s",tpbt); 159 free(tpbt); 157 160 map* err=createMap("text",pbt); 158 161 addToMap(err,"code","NoApplicableCode");
Note: See TracChangeset
for help on using the changeset viewer.