ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Spectre/Configurator.cpp
(Generate patch)

Comparing trunk/Spectre/Configurator.cpp (file contents):
Revision 165 by douglas, 2003-06-14T00:52:30-07:00 vs.
Revision 176 by douglas, 2003-07-05T17:36:35-07:00

# Line 10 | Line 10 | Configurator::Configurator(const string&
10   {
11          this->host = host;
12  
13 <        configurate();
13 >        good = configurate();
14   }
15  
16   string Configurator::password(const string& user)
# Line 57 | Line 57 | string Configurator::password(const stri
57          return password;
58   }
59  
60 < void Configurator::configurate()
60 > bool Configurator::configurate()
61   {
62          if (config.hosts.count(host) < 2)
63          {
64                  cerr << program << ": " << host << ": No configuration\n";
65 <                exit(1);
65 >                return false;
66          }
67  
68          for (multimap<string, string>::iterator itor =
# Line 128 | Line 128 | void Configurator::configurate()
128          if (passwd.size() == 0)
129          {
130                  cerr << program << ": " << host << ": No passwd configuration\n";
131 <                exit(1);
131 >                return false;
132          }
133  
134          if (regular.local == "" || regular.remote == "")
135          {
136                  cerr << program << ": " << host << ": No * folder configuration\n";
137 <                exit(1);
137 >                return false;
138          }
139  
140          if (debug)
# Line 180 | Line 180 | void Configurator::configurate()
180  
181                  cerr << "}\n";
182          }
183 +
184 +        return true;
185   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines