--- smsdaemon/plugins/TogPlugin.cpp 2008/06/15 16:05:14 79 +++ smsdaemon/plugins/TogPlugin.cpp 2008/06/15 18:57:00 80 @@ -7,6 +7,8 @@ #include #include +#include "common.h" + using namespace std; @@ -84,9 +86,9 @@ { infos = GetTrainInfo( code , "" ); } - catch(...) + catch(std::exception& e) { - modem.SendSms(sms.sender, "Connection timeout", false ); + modem.SendSms(sms.sender, e.what(), false ); return; }