sdbusplus: automatically add 'Error' to error dbus paths
Change-Id: I83d51e9aaa165e646ce711cc8bc551f010edc448
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/tools/sdbusplus/templates/error.mako.hpp b/tools/sdbusplus/templates/error.mako.hpp
index 2f34882..a64eac0 100644
--- a/tools/sdbusplus/templates/error.mako.hpp
+++ b/tools/sdbusplus/templates/error.mako.hpp
@@ -14,11 +14,11 @@
% for e in error.errors:
struct ${e.name} final : public sdbusplus::exception_t
{
- static constexpr auto errName = "${error.name}.${e.name}";
+ static constexpr auto errName = "${error.name}.Error.${e.name}";
static constexpr auto errDesc =
"${e.description.strip()}";
static constexpr auto errWhat =
- "${error.name}.${e.name}: ${e.description.strip()}";
+ "${error.name}.Error.${e.name}: ${e.description.strip()}";
const char* name() const noexcept override;
const char* description() const noexcept override;