Commit 5728e4d9 authored by Kirill Smelkov's avatar Kirill Smelkov

tracing/gotrace: Fix Go1.10 test failure

./gotrace.go:707: Errorf format %s arg pkgi.Pkg.Path is a func value, not called
parent 97a4c945
......@@ -704,7 +704,7 @@ func tracegen(pkgpath string, ctxt *build.Context, cwd string) error {
// determine package directory
if len(pkgi.Files) == 0 {
return fmt.Errorf("package %s is empty", pkgi.Pkg.Path)
return fmt.Errorf("package %s is empty", pkgi.Pkg.Path())
}
pkgdir := filepath.Dir(lprog.Fset.File(pkgi.Files[0].Pos()).Name())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment