commit | 38f802ac7d43a9dbf39d9e2e767128e3bfa7af4c | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Wed Sep 08 15:40:13 2021 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Sep 08 15:40:15 2021 -0500 |
tree | fc5e895238fea14ae876b50b334140494ca8da47 | |
parent | 39eb08a90b751d81a3efcca6b4a0e984a6271fdc [diff] |
exception: add errno sdbusplus is going to start requiring the 'get_errno' function on all exceptions. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: If98b71c227b109341189409ea8de42fa333e99c0
diff --git a/phosphor-regulators/test/test_sdbus_error.hpp b/phosphor-regulators/test/test_sdbus_error.hpp index a4ac9ee..09cc5f7 100644 --- a/phosphor-regulators/test/test_sdbus_error.hpp +++ b/phosphor-regulators/test/test_sdbus_error.hpp
@@ -47,6 +47,11 @@ return ""; } + int get_errno() const noexcept override + { + return EIO; + } + private: const std::string error{}; };