Skip to content

Commit

Permalink
[irods#7283] set_grid_configuration: Add rError messages from redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
alanking committed Oct 6, 2023
1 parent 8c735ef commit 5739427
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/api/src/set_grid_configuration_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ namespace
if (!ic::connected_to_catalog_provider(*_comm)) {
log_api::trace("Redirecting request to catalog service provider ...");
auto* host_info = ic::redirect_to_catalog_provider(*_comm);
return rc_set_grid_configuration_value(host_info->conn, _input);
const auto ec = rc_set_grid_configuration_value(host_info->conn, _input);

// Replicate the rError stack here so that any messages the API communicates to the client will
// persist through the redirect. See #6426 for details.
replErrorStack(host_info->conn->rError, &_comm->rError);

return ec;
}

ic::throw_if_catalog_provider_service_role_is_invalid();
Expand Down

0 comments on commit 5739427

Please sign in to comment.