zxs 1 Minggu lalu
induk
melakukan
bbec380a50
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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 清空