From d65bf8ac9a413a5b894f50d50ef4d2b67245fb34 Mon Sep 17 00:00:00 2001 From: Tobias Mayer Date: Mon, 30 Nov 2020 07:18:01 +0100 Subject: [PATCH] Forward substitution errors to the command --- libvast/src/system/node.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libvast/src/system/node.cpp b/libvast/src/system/node.cpp index 6934d06da52..336f71aa177 100644 --- a/libvast/src/system/node.cpp +++ b/libvast/src/system/node.cpp @@ -475,7 +475,10 @@ node_state::spawn_command(const invocation& inv, ->request(caf::actor_cast(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; } }