We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2df918 commit d572eceCopy full SHA for d572ece
pkg/packages/util.go
@@ -2,14 +2,11 @@ package packages
2
3
import (
4
"fmt"
5
- "regexp"
6
"strings"
7
8
"golang.org/x/tools/go/packages"
9
)
10
11
-var reFile = regexp.MustCompile(`^.+\.go:\d+:\d+: .+`)
12
-
13
func ExtractErrors(pkg *packages.Package) []packages.Error {
14
errors := extractErrorsImpl(pkg, map[*packages.Package]bool{})
15
if len(errors) == 0 {
@@ -92,9 +89,5 @@ func stackCrusher(msg string) string {
92
89
93
90
frag := msg[index+1 : lastIndex]
94
91
95
- if !reFile.MatchString(frag) {
96
- return msg
97
- }
98
99
return stackCrusher(frag)
100
}
0 commit comments