Skip to content

Commit

Permalink
Forward substitution errors to the command
Browse files Browse the repository at this point in the history
  • Loading branch information
tobim committed Nov 30, 2020
1 parent 79d26c4 commit d65bf8a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libvast/src/system/node.cpp
Expand Up @@ -475,7 +475,10 @@ node_state::spawn_command(const invocation& inv,
->request(caf::actor_cast<type_registry_type>(tr),
defaults::system::initial_request_timeout, atom::resolve_v,
std::move(*expr))
.then(handle_taxonomies);
.then(handle_taxonomies, [=](caf::error err) mutable {
rp.deliver(err);
return make_message(err);
});
return caf::none;
}
}
Expand Down

0 comments on commit d65bf8a

Please sign in to comment.