mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-01 07:40:18 -04:00
Better MiniFunction terminate message
This commit is contained in:
parent
33af7befed
commit
69bcab649e
1 changed files with 4 additions and 1 deletions
|
@ -126,7 +126,10 @@ namespace geode::utils {
|
|||
|
||||
Ret operator()(Args... args) const {
|
||||
if (!m_state) {
|
||||
utils::terminate("Attempted to call a MiniFunction that has already been moved");
|
||||
utils::terminate(
|
||||
"Attempted to call a MiniFunction that was never assigned "
|
||||
"any function, or one that has been moved"
|
||||
);
|
||||
}
|
||||
return m_state->call(args...);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue