瀏覽代碼

Improve EventNotSubscribedException usage in project classes

Patrick-Christopher Mattulat 2 年之前
父節點
當前提交
a7e37cedb1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/ls-std/event/EventManager.cpp

+ 1 - 1
source/ls-std/event/EventManager.cpp

@@ -30,7 +30,7 @@ void ls::std::event::EventManager::subscribe(const ls::std::core::type::event_id
   }
   else
   {
-    throw ls::std::core::EventNotSubscribedException{};
+    throw ls::std::core::EventNotSubscribedException{"id: " + _id};
   }
 }