pub fn map_known_error(err: CoreError) -> Result<String>