Skip to content

Commit 656c38c

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)