diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-01-31 11:59:06 -0600 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2024-01-31 12:05:40 -0600 |
| commit | be593f9ed29d8dfe42fbd6ba70f2c8be29dfd39f (patch) | |
| tree | d973cbba180872d0f4826e95507862380add0a49 /src/factories/BaseFactory.h | |
| parent | f4990f508e78eab33b071961fadb7d07f1598330 (diff) | |
Changed short to int16 and fixed throw message
Diffstat (limited to 'src/factories/BaseFactory.h')
| -rw-r--r-- | src/factories/BaseFactory.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/factories/BaseFactory.h b/src/factories/BaseFactory.h index fc7aed6..23293cf 100644 --- a/src/factories/BaseFactory.h +++ b/src/factories/BaseFactory.h @@ -40,7 +40,7 @@ std::optional<T> GetNode(YAML::Node& node, const std::string& key) { template<typename T> T GetSafeNode(YAML::Node& node, const std::string& key) { if(!node[key]) { - throw std::runtime_error("Failed to find " + key); + throw std::runtime_error("Failed to find " + key + " in yaml"); } return node[key].as<T>(); |
