X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FConsole%2FServer.cc;h=b46cd6e6ff3708b9b8155c9d274691a62d41fc6f;hb=975639608e44e49058ccd52f05ffe6b21faeafef;hp=6ed4b3bb7823e6c39d7d2009f09671ab3f48a0a3;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/Utils/Console/Server.cc b/senf/Utils/Console/Server.cc index 6ed4b3b..b46cd6e 100644 --- a/senf/Utils/Console/Server.cc +++ b/senf/Utils/Console/Server.cc @@ -354,8 +354,10 @@ prefix_ unsigned senf::console::Client::getWidth(std::ostream & os, unsigned def prefix_ senf::console::Client::SysBacktrace::SysBacktrace() { - sysdir().node().add("backtrace", &SysBacktrace::backtrace) - .doc("Display the backtrace of the last error / exception in this console"); + namespace fty = senf::console::factory; + + sysdir().add("backtrace", fty::Command(&SysBacktrace::backtrace) + .doc("Display the backtrace of the last error / exception in this console") ); } prefix_ void senf::console::Client::SysBacktrace::backtrace(std::ostream & os)