Skip to main content

extract_error_message

Function extract_error_message 

Source
pub fn extract_error_message(body: &str) -> String
Expand description

Extract a human-readable message from a NiFi error response body.

NiFi returns either a JSON object with a "message" field or plain text. Logs the raw body at debug level before extracting.