Skip to main content

build_error_response

Function build_error_response 

Source
pub fn build_error_response(err: &impl ApiError) -> Response
Expand description

Build an error response without logging (caller handles logging).

Use this when the caller already logs with tool-specific context. Use into_error_response for the default behaviour (logs + response).