From: Arvin Schnell Date: Thu, 5 Jul 2012 14:14:33 +0000 (+0200) Subject: - work on dbus interface X-Git-Tag: v0.1.3~214 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dfdb1de7226e104283b9b2f2a4de756077fa15e5;p=thirdparty%2Fsnapper.git - work on dbus interface --- diff --git a/client/commands.cc b/client/commands.cc index 510b45cb..ce82ed90 100644 --- a/client/commands.cc +++ b/client/commands.cc @@ -20,11 +20,6 @@ */ -#include -#include -#include -#include - #include "commands.h" diff --git a/client/commands.h b/client/commands.h index 0d7ae154..5e8e5147 100644 --- a/client/commands.h +++ b/client/commands.h @@ -20,10 +20,6 @@ */ -#include -#include -#include - #include #include #include diff --git a/client/snapper.cc b/client/snapper.cc index 515e3229..2c5b0392 100644 --- a/client/snapper.cc +++ b/client/snapper.cc @@ -1154,7 +1154,6 @@ main(int argc, char** argv) catch (const DBus::ErrorException& e) { string name = e.name(); - if (name == "error.unknown_config") cerr << _("Unknown config.") << endl; else if (name == "error.no_permissions") @@ -1165,10 +1164,12 @@ main(int argc, char** argv) cerr << _("Illegal Snapshot.") << endl; else cerr << _("Failure") << " (" << name << ")." << endl; + exit(EXIT_FAILURE); } catch (const DBus::FatalException& e) { cerr << _("Failure") << " (" << e.what() << ")." << endl; + exit(EXIT_FAILURE); } exit(EXIT_SUCCESS);