Add new template consts
ErrorOut+Log function Submission upload utility functions
This commit is contained in:
10
src/main.cpp
10
src/main.cpp
@ -17,13 +17,19 @@ using namespace std;
|
||||
using namespace TemplateConstCollection;
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
Utilities::errorOut("Cavecomm Start", true);
|
||||
|
||||
Utilities::config configuration;
|
||||
if (argc > 1)
|
||||
configuration.configPath = argv[1];
|
||||
|
||||
|
||||
#ifndef CROW_ENABLE_SSL
|
||||
Utilities::errorOut("CROW_ENABLE_SSL is not defined and thus SSL is deactivated", true);
|
||||
#endif
|
||||
|
||||
if (configuration.readConfigFile()) {
|
||||
cout << "ERROR: Unable to read configuration file: " << configuration.configPath << endl;
|
||||
cout << "Aborting Startup!" << endl;
|
||||
Utilities::errorOut("Unable to read configuration file: " + configuration.configPath + "\nAborting Startup!");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user