aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Script.hpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-15 20:49:37 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-15 20:49:37 +0100
commitfdd5c471dffd4a204a91e8d1d70567fa56ea29a5 (patch)
treeece2c3e32261fe9b0f7ccd3aa3bd4e98f74e3b28 /src/crepe/api/Script.hpp
parente8cd950b8ebd152d76d588d4fedc7f4c239b0835 (diff)
`make format`
Diffstat (limited to 'src/crepe/api/Script.hpp')
-rw-r--r--src/crepe/api/Script.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/api/Script.hpp b/src/crepe/api/Script.hpp
index 13b8077..c4e07e8 100644
--- a/src/crepe/api/Script.hpp
+++ b/src/crepe/api/Script.hpp
@@ -12,7 +12,8 @@ T & Script::get_component() const {
using namespace std;
vector<reference_wrapper<T>> all_components = this->get_components<T>();
if (all_components.size() < 1)
- throw runtime_error(format("Script: no component found with type = {}", typeid(T).name()));
+ throw runtime_error(
+ format("Script: no component found with type = {}", typeid(T).name()));
return all_components.back().get();
}