mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 07:26:52 +01:00
Change Execption messages
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@ int main(int argc, char** argv)
|
||||
catch (Exception &ex)
|
||||
{
|
||||
ex.writeMessage();
|
||||
WRITELOG("ABORT Gateway!!!\n\n\n");
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user