+-------------------------------------------------------------------
+Tue Oct 21 12:57:50 CEST 2025 - aschnell@suse.com
+
+- handle DBus connection error in snapper-zypp-plugin
+
-------------------------------------------------------------------
Mon Oct 13 08:43:43 CEST 2025 - aschnell@suse.com
/*
- * Copyright (c) [2019-2024] SUSE LLC
+ * Copyright (c) [2019-2025] SUSE LLC
*
* All Rights Reserved.
*
*/
-#include <stdlib.h>
+#include <cstdlib>
#include <sys/types.h>
#include <unistd.h>
}
ProgramOptions options;
- SnapperZyppCommitPlugin plugin(options);
- return plugin.main();
+
+ try
+ {
+ SnapperZyppCommitPlugin plugin(options);
+ return plugin.main();
+ }
+ catch (const DBus::ErrorException& e)
+ {
+ SN_CAUGHT(e);
+ y2err("failure (" << e.message() << ")");
+ return EXIT_FAILURE;
+ }
}