Skip to main content

package_error

Function package_error 

Source
pub fn package_error<E: ToString>(query: &mut Value, error: E) -> Value
Expand description

helper to return errors as JSON response objects which include the original request along with the error message