From dc254fb5f2121f68755ab789b15b4683af818243 Mon Sep 17 00:00:00 2001 From: tadelesh Date: Wed, 13 Nov 2024 11:04:50 +0800 Subject: [PATCH] refine typespec release tool --- 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"))