Changeset 387 for trunk/zoo-project/zoo-kernel/service_internal.c
- Timestamp:
- Jan 10, 2013, 12:15:05 PM (10 years ago)
- File:
-
- 1 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);
Note: See TracChangeset
for help on using the changeset viewer.