}
catch (const runtime_error& e)
{
- cerr << _("Failed to set locale. Fix your system.") << endl;
+ cerr << _("Failed to set locale.") << endl;
}
setLogDo(&log_do);
y2mil("Requesting DBus name");
- mainloop.request_name(SERVICE, DBUS_NAME_FLAG_REPLACE_EXISTING);
+ try
+ {
+ mainloop.request_name(SERVICE, DBUS_NAME_FLAG_REPLACE_EXISTING);
+ }
+ catch (const Exception& e)
+ {
+ SN_CAUGHT(e);
+
+ y2err("Failed to request DBus name");
+
+ return EXIT_FAILURE;
+ }
y2mil("Loading snapper configs");
{
SN_CAUGHT(e);
- y2err("failed to load snapper configs");
+ y2err("Failed to load snapper configs");
}
y2mil("Listening for method calls and signals");
meta_snappers.unload();
- return 0;
+ return EXIT_SUCCESS;
}