/*
* Copyright (c) [2011-2014] Novell, Inc.
- * Copyright (c) [2016,2018] SUSE LLC
+ * Copyright (c) [2016-2021] SUSE LLC
*
* All Rights Reserved.
*
if (name == "error.io_error")
return sformat(_("IO Error (%s)."), e.message());
+ if (name == "error.list_configs_failed")
+ return sformat(_("Listing configs failed (%s)."), e.message());
+
if (name == "error.create_config_failed")
return sformat(_("Creating config failed (%s)."), e.message());
+-------------------------------------------------------------------
+Fri Apr 09 15:23:14 CEST 2021 - aschnell@suse.com
+
+- improved error handling (see gh#openSUSE/snapper#626)
+
-------------------------------------------------------------------
Thu Apr 08 14:05:19 CEST 2021 - aschnell@suse.com
/*
* Copyright (c) [2012-2015] Novell, Inc.
- * Copyright (c) [2016,2018] SUSE LLC
+ * Copyright (c) [2016-2021] SUSE LLC
*
* All Rights Reserved.
*
DBus::MessageError reply(msg, "error.unknown_config", DBUS_ERROR_FAILED);
conn.send(reply);
}
+ catch (const ListConfigsFailedException& e)
+ {
+ SN_CAUGHT(e);
+ DBus::MessageError reply(msg, "error.list_configs_failed", e.what());
+ conn.send(reply);
+ }
catch (const CreateConfigFailedException& e)
{
SN_CAUGHT(e);
/*
* Copyright (c) [2012-2015] Novell, Inc.
- * Copyright (c) 2018 SUSE LLC
+ * Copyright (c) [2018-2021] SUSE LLC
*
* All Rights Reserved.
*
y2mil("Loading snapper configs");
- meta_snappers.init();
+ try
+ {
+ meta_snappers.init();
+ }
+ catch (const Exception& e)
+ {
+ SN_CAUGHT(e);
+
+ y2err("failed to load snapper configs");
+ }
y2mil("Listening for method calls and signals");