Skip to main content

lc_error

Function lc_error 

Source
pub(crate) fn lc_error(err: Error) -> Error
Expand description

Convert a query-service error to an AvailabilityError-carrying anyhow error so the HTTP layer returns the status carried by the error (400/404) instead of 500.