diff options
Diffstat (limited to 'forstio/async/async.cpp')
-rw-r--r-- | forstio/async/async.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forstio/async/async.cpp b/forstio/async/async.cpp index ca85b30..c53ffa6 100644 --- a/forstio/async/async.cpp +++ b/forstio/async/async.cpp @@ -29,7 +29,7 @@ conveyor_node_with_child_mixin::conveyor_node_with_child_mixin( error_or<own<conveyor_node>> conveyor_node_with_child_mixin::swap_child(own<conveyor_node> &&swapee) { SAW_ASSERT(child) { - return critical_error("Child should exist if this function is called"); + return make_error<err::invalid_state>("Child should exist if this function is called"); } own<conveyor_node> old_child = std::move(child); |