summaryrefslogtreecommitdiff
path: root/src/state/initial_state.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/initial_state.hpp')
-rw-r--r--src/state/initial_state.hpp23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/state/initial_state.hpp b/src/state/initial_state.hpp
index fecf2b6..f64ff25 100644
--- a/src/state/initial_state.hpp
+++ b/src/state/initial_state.hpp
@@ -134,17 +134,7 @@ struct InitialState : public BasicStateT<InitialState>
timerPeriod](boost::asio::yield_context yield) {
LogMsg(Logger::Info, "[App]: Unmount called on ",
machine.getName());
-
- try
- {
- machine.emitUnmountEvent();
- }
- catch (const std::exception& e)
- {
- LogMsg(Logger::Error, e.what());
- throw sdbusplus::exception::SdBusError(EPERM, e.what());
- return false;
- }
+ machine.emitUnmountEvent();
auto repeats = waitCnt;
boost::asio::steady_timer timer(machine.getIoc());
@@ -174,16 +164,7 @@ struct InitialState : public BasicStateT<InitialState>
interfaces::MountPointStateMachine& machine,
std::optional<interfaces::MountPointStateMachine::Target>
target) {
- try
- {
- machine.emitMountEvent(std::move(target));
- }
- catch (const std::exception& e)
- {
- LogMsg(Logger::Error, e.what());
- throw sdbusplus::exception::SdBusError(EPERM, e.what());
- return false;
- }
+ machine.emitMountEvent(std::move(target));
auto repeats = waitCnt;
boost::asio::steady_timer timer(machine.getIoc());