Skip to content

Commit

Permalink
errcheck_test.go: Better error reporting for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeShu committed Jun 28, 2019
1 parent 4f924b3 commit 3bf72b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/errcheck/errcheck_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func init() {
}
pkgs, err := packages.Load(cfg, testPackage)
if err != nil {
panic("failed to import test package")
panic(fmt.Errorf("failed to import test package: %v", err))
}
for _, pkg := range pkgs {
for _, file := range pkg.Syntax {
Expand Down

0 comments on commit 3bf72b1

Please sign in to comment.