diff --git a/main.go b/main.go index 2f8b9cf..18e617b 100644 --- a/main.go +++ b/main.go @@ -293,7 +293,8 @@ func main() { for { req, err := readMessage(reader) if err != nil { - log.Fatalf("Error reading message: %v", err) + sendError(nil, -32600, "Malformed request", err.Error()) + continue // Ignore malformed request } // Handle request in a separate goroutine