From e5fc3129771753f646129544c299cf9ad8c91185 Mon Sep 17 00:00:00 2001 From: Arthi Gokarn Date: Mon, 5 May 2025 19:06:35 +0000 Subject: [PATCH] Add documentation and comments about encapsulated error messages. --- README.md | 3 +++ ohttp-client-cli/src/main.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 1fecc83..1c3b9b6 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,9 @@ Rust and python packages can be built using this repo. We support development an [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/attested-ohttp-client) +## Encapsulated error messages +In addition to the encapsulated response from confidential whisper model, the error messages will also be declassified to enhance confidentiality. + ## Python package Build the pyohttp package as follows. diff --git a/ohttp-client-cli/src/main.rs b/ohttp-client-cli/src/main.rs index f8600d0..49f939b 100644 --- a/ohttp-client-cli/src/main.rs +++ b/ohttp-client-cli/src/main.rs @@ -97,6 +97,7 @@ async fn main() -> Res<()> { println!("{chunk}"); } } else { + // Decapsulated error message. println!("Request failed with status {status}"); error!("{}", response.text().await?); }