zxs 1 周之前
父节点
当前提交
bbec380a50
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      robot/robotics/delegates.hpp

+ 1 - 1
robot/robotics/delegates.hpp

@@ -133,7 +133,7 @@ namespace robotics {
 			_Ret operator()(_Args...args) {
 				if (handler_)
 					return handler_(args...);
-				std::runtime_error("func nullptr");
+				throw std::runtime_error("func nullptr");
 			}
 			/**
 			 * @brief 清空