diff options
Diffstat (limited to 'redfish-core/src/utils/dbus_utils.cpp')
-rw-r--r-- | redfish-core/src/utils/dbus_utils.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/redfish-core/src/utils/dbus_utils.cpp b/redfish-core/src/utils/dbus_utils.cpp index bffe7a867b..ba84d3063e 100644 --- a/redfish-core/src/utils/dbus_utils.cpp +++ b/redfish-core/src/utils/dbus_utils.cpp @@ -27,6 +27,12 @@ void afterSetProperty(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, { messages::insufficientPrivilege(asyncResp->res); } + if (ec.value() == boost::asio::error::host_unreachable) + { + messages::resourceNotFound(asyncResp->res, "Set", + redfishPropertyName); + return; + } const sd_bus_error* dbusError = msg.get_error(); if (dbusError != nullptr) { @@ -60,6 +66,11 @@ void afterSetProperty(const std::shared_ptr<bmcweb::AsyncResp>& asyncResp, redfishPropertyName); return; } + if (errorName == "xyz.openbmc_project.Common.Error.Unavailable") + { + messages::resourceInStandby(asyncResp->res); + return; + } } BMCWEB_LOG_ERROR("D-Bus error setting Redfish Property {} ec={}", redfishPropertyName, ec); |