Changeset 387 for trunk/zoo-project
- Timestamp:
- Jan 10, 2013, 12:15:05 PM (12 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal.c
r386 r387 1849 1849 tmpPath=getMapFromMaps(m,"main","tmpPath"); 1850 1850 sprintf(session_file_path,"%s/sess_%s.cfg",tmpPath->value,sessId); 1851 dumpMapsToFile(tmpSess,session_file_path); 1851 FILE* teste=fopen(session_file_path,"w"); 1852 if(teste==NULL){ 1853 char tmpMsg[1024]; 1854 sprintf(tmpMsg,_("Unable to create the file : \"%s\" for storing the session maps."),session_file_path); 1855 map * errormap = createMap("text",tmpMsg); 1856 addToMap(errormap,"code", "InternalError"); 1857 printExceptionReportResponse(m,errormap); 1858 freeMap(&errormap); 1859 free(errormap); 1860 return; 1861 } 1862 else{ 1863 fclose(teste); 1864 dumpMapsToFile(tmpSess,session_file_path); 1865 } 1852 1866 } 1853 1867 … … 1911 1925 if(ofile==NULL){ 1912 1926 char tmpMsg[1024]; 1913 sprintf(tmpMsg,_("Unable to create the file : \"%s\" for storing the final result."),tmpI->name);1927 sprintf(tmpMsg,_("Unable to create the file : \"%s\" for storing the %s final result."),file_name,tmpI->name); 1914 1928 map * errormap = createMap("text",tmpMsg); 1915 1929 addToMap(errormap,"code", "InternalError"); … … 1930 1944 } 1931 1945 addToMap(tmpI->content,"Reference",file_url); 1932 if( hasExt!=true){1946 if(!hasExt){ 1933 1947 freeMap(&ext); 1934 1948 free(ext); -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r385 r387 2137 2137 addMapsToMaps(&m,tmpSess); 2138 2138 freeMaps(&tmpSess); 2139 }else{ 2140 errorException(m, _("Unable to read your session file."), "InternalError"); 2141 freeMaps(&tmpSess); 2142 freeService(&s1); 2143 free(s1); 2144 freeMaps(&m); 2145 free(m); 2146 freeMaps(&request_input_real_format); 2147 free(request_input_real_format); 2148 freeMaps(&request_output_real_format); 2149 free(request_output_real_format); 2150 free(REQUEST); 2151 free(SERVICE_URL); 2152 return 1; 2139 2153 } 2140 2154 free(tmpSess);
Note: See TracChangeset
for help on using the changeset viewer.