summaryrefslogtreecommitdiff
path: root/src/state/ready_state.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/ready_state.hpp')
-rw-r--r--src/state/ready_state.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/state/ready_state.hpp b/src/state/ready_state.hpp
index 5edfa06..2243143 100644
--- a/src/state/ready_state.hpp
+++ b/src/state/ready_state.hpp
@@ -47,6 +47,12 @@ struct ReadyState : public BasicStateT<ReadyState>
return std::make_unique<ActivatingState>(machine);
}
+ [[noreturn]] std::unique_ptr<BasicState> handleEvent(UnmountEvent event)
+ {
+ LogMsg(Logger::Error, "InvalidĀ event: ", event.eventName);
+ throw sdbusplus::exception::SdBusError(EPERM, "Operation not permitted in ready state");
+ }
+
template <class AnyEvent>
std::unique_ptr<BasicState> handleEvent(AnyEvent event)
{