pub fn describe(e: &Error) -> String
How a measurement failure reads in mem_error: a refusal by --memory-limit (ResourceLimit, which is also what an allocation failure becomes) says so; everything else is its own message.
mem_error
--memory-limit
ResourceLimit