File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
eng/tools/generator/cmd/v2/common Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ func ExecuteTspClient(path string, args ...string) error {
244
244
// filter diagnostic errors
245
245
if len (newErrMsgs ) == 1 &&
246
246
newErrMsgs [0 ] == "Diagnostics were reported during compilation. Use the `--debug` flag to see the diagnostic output." {
247
- newErrMsgs = FilterErrorDiagnostics (strings .Split (stdoutBuffer .String (), "\n " ))
247
+ newErrMsgs = getErrorDiagnostics (strings .Split (stdoutBuffer .String (), "\n " ))
248
248
249
249
temp := make ([]string , 0 )
250
250
for _ , line := range newErrMsgs {
@@ -337,7 +337,7 @@ func diagnostics(lines []string) []diagnostic {
337
337
return diagnostics
338
338
}
339
339
340
- func FilterErrorDiagnostics (lines []string ) []string {
340
+ func getErrorDiagnostics (lines []string ) []string {
341
341
diags := diagnostics (lines )
342
342
if len (diags ) == 0 {
343
343
return nil
You can’t perform that action at this time.
0 commit comments