Skip to content

Commit 296dd89

Browse files
committed
fmt
1 parent d93f21c commit 296dd89

File tree

1 file changed

+12
-5
lines changed
  • crates/chat-cli/src/cli/chat

1 file changed

+12
-5
lines changed

crates/chat-cli/src/cli/chat/mod.rs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,11 +1092,18 @@ impl ChatContext {
10921092
style::SetAttribute(Attribute::Bold),
10931093
style::SetForegroundColor(Color::Red),
10941094
)?;
1095-
let message = "The model you've selected is temporarily unavailable. Please use '/model' to select a different model and try again.";
1096-
queue!(
1097-
self.output,
1098-
style::Print(&format!("{}\nRequest ID: {}", message, request_id))
1099-
)?;
1095+
1096+
let message = " The model you've selected is temporarily unavailable. Please use '/model' to select a different model and try again.";
1097+
let text = match request_id {
1098+
Some(id) => format!(
1099+
"Amazon Q is having trouble responding right now:\n{}\n Request ID: {}\n\n",
1100+
message, id
1101+
),
1102+
None => format!("Amazon Q is having trouble responding right now:\n{}\n\n", message),
1103+
};
1104+
queue!(self.output, style::Print(&text))?;
1105+
self.conversation_state.append_transcript(text);
1106+
11001107
execute!(
11011108
self.output,
11021109
style::SetAttribute(Attribute::Reset),

0 commit comments

Comments
 (0)