From 94d1c880572781484f9e2ee2a2838d1a3cd426c7 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 b7018d48d623..e76e36bd1478 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"))