diff --git a/daemon/sbin/core-daemon b/daemon/sbin/core-daemon index 68113f7c..258d51f7 100755 --- a/daemon/sbin/core-daemon +++ b/daemon/sbin/core-daemon @@ -978,6 +978,12 @@ class CoreRequestHandler(SocketServer.BaseRequestHandler): except Exception, e: self.warn("error executing '%s': %s" % \ (ex, traceback.format_exc())) + tlvdata = coreapi.CoreExceptionTlv.pack( \ + coreapi.CORE_TLV_EXCP_LEVEL, 2) + tlvdata += coreapi.CoreExceptionTlv.pack( \ + coreapi.CORE_TLV_EXCP_TEXT, str(e)) + msg = coreapi.CoreExceptionMessage.pack(0, tlvdata) + replies.append(msg) return replies gui = msg.gettlv(coreapi.CORE_TLV_REG_GUI)