Ignore:
Timestamp:
Jan 10, 2013, 11:51:13 AM (7 years ago)
Author:
djay
Message:

Small fix to return exception report when storing the result on disk failed. Thanks to Luca Delucchi for pointing this issue out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service_internal.c

    r385 r386  
    19091909        sprintf(file_name,"%s/%s_%s_%i.%s",tmp1->value,s->name,tmpI->name,cpid+100000,ext->value);
    19101910        FILE *ofile=fopen(file_name,"wb");
    1911         if(ofile==NULL)
    1912           fprintf(stderr,"Unable to create file on disk implying segfault ! \n");
     1911        if(ofile==NULL){
     1912          char tmpMsg[1024];
     1913          sprintf(tmpMsg,_("Unable to create the file : \"%s\" for storing the final result."),tmpI->name);
     1914          map * errormap = createMap("text",tmpMsg);
     1915          addToMap(errormap,"code", "InternalError");
     1916          printExceptionReportResponse(m,errormap);
     1917          freeMap(&errormap);
     1918          free(errormap);
     1919          return;
     1920        }
    19131921        map *tmp2=getMapFromMaps(m,"main","tmpUrl");
    19141922        map *tmp3=getMapFromMaps(m,"main","serverAddress");
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png