Skip to content

Commit

Permalink
[82] Do not print stacktrace when fetching status for unmonitored col…
Browse files Browse the repository at this point in the history
…lection.
  • Loading branch information
korydraughn committed Apr 21, 2024
1 parent 072b6eb commit b4dda6b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,11 @@ namespace irods::handler
const auto& path = *boost::any_cast<std::string*>(*args_iter);

if (!is_monitored_collection(conn, attrs, path)) {
THROW(SYS_INVALID_INPUT_PARAM,
fmt::format("Logical Quotas Policy: [{}] is not a monitored collection.", path));
auto msg = fmt::format("Logical Quotas Policy: [{}] is not a monitored collection.", path);
log::rule_engine::error(msg);
constexpr auto ec = SYS_INVALID_INPUT_PARAM;
addRErrorMsg(&get_rei(_effect_handler).rsComm->rError, ec, msg.c_str());
return ERROR(ec, std::move(msg));
}

auto quota_status = nlohmann::json::object(); // Holds the current quota values.
Expand Down

0 comments on commit b4dda6b

Please sign in to comment.