Changeset 1090


Ignore:
Timestamp:
2000-04-14T15:10:35+12:00 (24 years ago)
Author:
sjboddie
Message:

tidied up a few issues concerning the new debug info which showed
up on windows

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/cgiwrapper.cpp

    r1089 r1090  
    2828/*
    2929   $Log$
     30   Revision 1.24  2000/04/14 03:10:35  sjboddie
     31   tidied up a few issues concerning the new debug info which showed
     32   up on windows
     33
    3034   Revision 1.23  2000/04/14 02:52:05  sjboddie
    3135   tidied up error messaging and set up some debugging info to be output
     
    238242
    239243  if (mode == 0) {
    240     errortext += "The gsdlsite.cfg configuration file could not be found. This file\n";
    241     errortext += "should contain configuration information relating to this site's setup.\n";
    242     errortext += "gsdlsite.cfg should reside in the same directory as this executable file.\n";
     244    errortext += "The gsdlsite.cfg configuration file could not be found. This\n";
     245    errortext += "file should contain configuration information relating to this\n";
     246    errortext += "site's setup.\n";
     247
    243248  } else if (mode == 1) {
    244     errortext += "The gsdlsite.cfg configuration file does not contain a valid gsdlhome entry.\n";
    245     errortext += "gsdlsite.cfg resides in the same directory as this executable.\n";
     249    errortext += "The gsdlsite.cfg configuration file does not contain a valid\n";
     250    errortext += "gsdlhome entry.\n";
     251  }
     252
     253  if (debug) {
     254    errortext += "gsdlsite.cfg should reside in the directory from which the\n";
     255    errortext += "library executable was run.\n";
     256  } else {
     257    errortext += "gsdlsite.cfg should reside in the same directory as the library\n";
     258    errortext += "executable file.\n";
    246259  }
    247260
  • trunk/gsdl/src/recpt/recptconfig.cpp

    r1089 r1090  
    2828/*
    2929   $Log$
     30   Revision 1.8  2000/04/14 03:10:35  sjboddie
     31   tidied up a few issues concerning the new debug info which showed
     32   up on windows
     33
    3034   Revision 1.7  2000/04/14 02:52:06  sjboddie
    3135   tidied up error messaging and set up some debugging info to be output
     
    8387  text_tarray cfgline;
    8488  text_t key;
    85   ifstream confin ("gsdlsite.cfg");
     89  ifstream confin ("gsdlsite.cfg", ios::in | ios::nocreate);
    8690
    8791  if (confin) {
     
    118122  text_tarray cfgline;
    119123  text_t key;
    120   ifstream confin ("gsdlsite.cfg");
     124  ifstream confin ("gsdlsite.cfg", ios::in | ios::nocreate);
    121125
    122126  if (confin) {
     
    149153  if (file_exists (filename)) {
    150154    char *cstr = filename.getcstr();
    151     ifstream confin (cstr);
     155    ifstream confin (cstr, ios::in | ios::nocreate);
    152156    delete cstr;
    153157 
     
    182186    if (!filename.empty()) {
    183187      char *cstr = filename.getcstr();
    184       ifstream confin (cstr);
     188      ifstream confin (cstr, ios::in | ios::nocreate);
    185189      delete cstr;
    186190     
Note: See TracChangeset for help on using the changeset viewer.