From f9b03ff28faf900b9312e10620e6299b63acdd8d Mon Sep 17 00:00:00 2001 From: Chenjie Shi Date: Wed, 13 Nov 2024 11:24:48 +0800 Subject: [PATCH] refine typespec release tool (#23735) --- eng/tools/generator/cmd/v2/common/cmdProcessor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/tools/generator/cmd/v2/common/cmdProcessor.go b/eng/tools/generator/cmd/v2/common/cmdProcessor.go index b7018d48d6..e76e36bd14 100644 --- a/eng/tools/generator/cmd/v2/common/cmdProcessor.go +++ b/eng/tools/generator/cmd/v2/common/cmdProcessor.go @@ -243,7 +243,7 @@ func ExecuteTspClient(path string, args ...string) error { // filter diagnostic errors if len(newErrMsgs) >= 1 && - newErrMsgs[0] == "Diagnostics were reported during compilation. Use the `--debug` flag to see if there is warning diagnostic output." { + strings.HasPrefix(newErrMsgs[0], "Diagnostics were reported during compilation.") { newErrMsgs = newErrMsgs[1:] errDiags := getErrorDiagnostics(strings.Split(stdoutBuffer.String(), "\n"))