Change Execption messages

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2021-04-30 19:21:49 +09:00
parent 5c7cefdf48
commit 18af949c7a
2 changed files with 3 additions and 2 deletions

View File

@@ -164,7 +164,7 @@ int Process::getParam(const char* parameter, char* value)
if ((fp = fopen(configPath.c_str(), "r")) == NULL)
{
throw Exception("No config file:[" + configPath + "]\n");
throw Exception("No config file:[" + configPath + "]\n\nUsage: Command -f path/config_file_name\n");
}
while (true)
@@ -287,7 +287,7 @@ void MultiTaskProcess::run(void)
}
else if (_stopCount > 0)
{
throw Exception(0,"Abort",__FILE__, __func__, __LINE__);
throw Exception("Task stopped !!\n\n");
}
sleep(1);
}

View File

@@ -42,6 +42,7 @@ int main(int argc, char** argv)
catch (Exception &ex)
{
ex.writeMessage();
WRITELOG("ABORT Gateway!!!\n\n\n");
abort();
}
}