Skip to content

Commit d028825

Browse files
authored
Skip displaying call stack for "HTTP 429" (Too Many Requests) errors to reduce clutter (#417)
1 parent f97c7a9 commit d028825

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
@@ -695,7 +695,8 @@ internal async Task RunREPLAsync()
695695

696696
StringBuilder sb = null;
697697
string message = ex.Message;
698-
string stackTrace = ex.StackTrace;
698+
// Skip displaying call stack for "HTTP 429" (Too Many Requests) errors to reduce clutter.
699+
string stackTrace = message.Contains("HTTP 429") ? null : ex.StackTrace;
699700

700701
while (ex.InnerException is { })
701702
{

0 commit comments

Comments
 (0)