Lines Matching full:ec

18 void checkAndThrowInternalFailure(boost::system::error_code& ec,  in checkAndThrowInternalFailure()  argument
21 if (ec) in checkAndThrowInternalFailure()
23 std::string msgToLog = ec.message() + (msg.empty() ? "" : " - " + msg); in checkAndThrowInternalFailure()
35 boost::system::error_code ec; in systemdDaemonReload() local
36 conn->yield_method_call<>(yield, ec, sysdService, sysdObjPath, sysdMgrIntf, in systemdDaemonReload()
38 checkAndThrowInternalFailure(ec, "daemon-reload operation failed"); in systemdDaemonReload()
59 boost::system::error_code ec; in systemdUnitAction() local
61 yield, ec, sysdService, sysdObjPath, sysdMgrIntf, actionMethod, in systemdUnitAction()
63 checkAndThrowInternalFailure(ec, in systemdUnitAction()
71 ec.clear(); in systemdUnitAction()
72 conn->yield_method_call<>(yield, ec, sysdService, sysdObjPath, in systemdUnitAction()
75 if (ec) in systemdUnitAction()
77 if (ec.value() == boost::system::errc::no_such_file_or_directory) in systemdUnitAction()
82 lg2::error("Systemd operation failed for job query: {EC}", "EC", in systemdUnitAction()
83 ec.value()); in systemdUnitAction()
89 ec.clear(); in systemdUnitAction()
90 sleepTimer.async_wait(yield[ec]); in systemdUnitAction()
91 checkAndThrowInternalFailure(ec, "Systemd operation timer error"); in systemdUnitAction()
101 boost::system::error_code ec; in systemdUnitFilesStateChange() local
105 conn->yield_method_call<>(yield, ec, sysdService, sysdObjPath, in systemdUnitFilesStateChange()
108 checkAndThrowInternalFailure(ec, "Systemd UnmaskUnitFiles() failed."); in systemdUnitFilesStateChange()
112 conn->yield_method_call<>(yield, ec, sysdService, sysdObjPath, in systemdUnitFilesStateChange()
115 checkAndThrowInternalFailure(ec, "Systemd MaskUnitFiles() failed."); in systemdUnitFilesStateChange()
117 ec.clear(); in systemdUnitFilesStateChange()
120 conn->yield_method_call<>(yield, ec, sysdService, sysdObjPath, in systemdUnitFilesStateChange()
123 checkAndThrowInternalFailure(ec, "Systemd EnableUnitFiles() failed."); in systemdUnitFilesStateChange()
127 conn->yield_method_call<>(yield, ec, sysdService, sysdObjPath, in systemdUnitFilesStateChange()
130 checkAndThrowInternalFailure(ec, "Systemd DisableUnitFiles() failed."); in systemdUnitFilesStateChange()