Commit a7edd5c3d9d04945d94eb9bef409e62762b1cffa

Authored by Perry Werneck
1 parent 274aff52

Ajustes no tratamento de erros.

src/libpw3270cpp/service.cc
... ... @@ -88,15 +88,14 @@
88 88  
89 89 if(dbus_error_is_set(&error))
90 90 {
91   - exception e = exception("%s",error.message);
  91 + string msg = error.message;
92 92 dbus_error_free(&error);
93   - throw e;
  93 + throw exception("%s",msg.c_str());
94 94 }
95 95  
96 96 if(!reply)
97 97 {
98   - exception e = exception("No reply for %s message","DBUS");
99   - throw e;
  98 + throw exception("No reply for %s message","DBUS");
100 99 }
101 100  
102 101 return reply;
... ...
src/libpw3270cpp/session.cc
... ... @@ -185,7 +185,7 @@
185 185 catch(std::exception &e)
186 186 {
187 187 unlock();
188   - throw e;
  188 + throw exception("%s",e.what());
189 189 }
190 190  
191 191 unlock();
... ...