--- smsdaemon/plugins/TogPlugin.cpp 2008/06/12 12:43:29 63 +++ smsdaemon/plugins/TogPlugin.cpp 2008/06/16 10:21:02 90 @@ -1,5 +1,6 @@ #include "TogPlugin.h" -#include "GsmModem.h" +#include "IGsmModem.h" +#include "Sms.h" #include "TrainInfo.h" #include "util.h" @@ -7,6 +8,8 @@ #include #include +#include "common.h" + using namespace std; @@ -84,9 +87,9 @@ { infos = GetTrainInfo( code , "" ); } - catch(...) + catch(std::exception& e) { - modem.SendSms(sms.sender, "Connection timeout", false ); + modem.SendSms(sms.sender, e.what(), false ); return; }