diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/syncevo-dbus-server.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/syncevo-dbus-server.cpp b/src/syncevo-dbus-server.cpp index 96c13dc2..ae0acf8f 100644 --- a/src/syncevo-dbus-server.cpp +++ b/src/syncevo-dbus-server.cpp @@ -2023,7 +2023,10 @@ public: // exceptions must be handled (= printed) before returning, // so that our client gets the output try { - m_cmdline.run(); + if (!m_cmdline.run()) { + SE_THROW_EXCEPTION(DBusSyncException, "command line execution failure"); + } + } catch (...) { redirectPtr->flush(); throw; |