Skip to content

Commit 7efd15f

Browse files
committed
refactor(observer): remove commented-out code for error handling #259
Clean up unused code related to exit code checks in ExternalTaskAgentObserver.
1 parent 818bd2b commit 7efd15f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

core/src/main/kotlin/cc/unitmesh/devti/observer/ExternalTaskAgentObserver.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,12 @@ class ExternalTaskAgentObserver : AgentObserver, Disposable {
4949
return
5050
}
5151

52-
// if (exitCode != 0 && exitCode != IDEA_INTERRUPTED_CODE) {
53-
// val prompt = "Help Me fix follow build issue:\n```bash\n$globalBuffer\n```\n"
54-
// sendErrorNotification(project, prompt)
55-
// } else {
5652
val isSpringFailureToStart =
5753
globalBuffer.contains("***************************") && globalBuffer.contains("APPLICATION FAILED TO START")
5854
if (isSpringFailureToStart) {
5955
val prompt = "Help Me fix follow build issue:\n```bash\n$globalBuffer\n```\n"
6056
sendErrorNotification(project, prompt)
6157
}
62-
// }
6358
}
6459
})
6560
}

0 commit comments

Comments
 (0)