Commit a7edd5c3d9d04945d94eb9bef409e62762b1cffa
1 parent
274aff52
Exists in
master
and in
5 other branches
Ajustes no tratamento de erros.
Showing
2 changed files
with
4 additions
and
5 deletions
Show diff stats
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; | ... | ... |