Revert "feat: enhance error reporting with specific error types from Claude e…" (#179)

This reverts commit 1b94b9e5a8.
This commit is contained in:
Ashwin Bhat
2025-06-16 16:52:07 -07:00
committed by GitHub
parent 1b94b9e5a8
commit 2dab3f2afe
2 changed files with 11 additions and 44 deletions

View File

@@ -114,16 +114,6 @@ export function updateCommentBody(input: CommentUpdateInput): string {
if (actionFailed) {
header = "**Claude encountered an error";
// Add error type to header if available
if (errorDetails) {
if (errorDetails === "Error during execution") {
header = "**Claude encountered an error during execution";
} else if (errorDetails === "Maximum turns exceeded") {
header = "**Claude exceeded the maximum number of turns";
}
}
if (durationStr) {
header += ` after ${durationStr}`;
}
@@ -191,13 +181,8 @@ export function updateCommentBody(input: CommentUpdateInput): string {
// Build the new body with blank line between header and separator
let newBody = `${header}${links}`;
// Add error details if available (but not if it's just the error type we already showed in header)
if (
actionFailed &&
errorDetails &&
errorDetails !== "Error during execution" &&
errorDetails !== "Maximum turns exceeded"
) {
// Add error details if available
if (actionFailed && errorDetails) {
newBody += `\n\n\`\`\`\n${errorDetails}\n\`\`\``;
}