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 清空