Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit 656c38c

Browse files
committed
Skip displaying call stack for "HTTP 429" (Too Many Requests) errors to reduce clutter
1 parent e64f32e commit 656c38c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

shell/AIShell.Kernel/Shell.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,8 @@ internal async Task RunREPLAsync()
689689

690690
StringBuilder sb = null;
691691
string message = ex.Message;
692-
string stackTrace = ex.StackTrace;
692+
// Skip displaying call stack for "HTTP 429" (Too Many Requests) errors to reduce clutter.
693+
string stackTrace = message.Contains("HTTP 429") ? null : ex.StackTrace;
693694

694695
while (ex.InnerException is { })
695696
{

0 commit comments

Comments
 (0)