From 65a44e22ba217ef7272b9d3735e9d12cfaa204f6 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 9 May 2020 09:57:51 +0200 Subject: pkg/build: find maintainers for build errors Extract build error source file and obtain maintainers so that we can mail the report to the right people. Update #1667 --- pkg/bisect/bisect.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/bisect') diff --git a/pkg/bisect/bisect.go b/pkg/bisect/bisect.go index 84756cb56..1ea8a9738 100644 --- a/pkg/bisect/bisect.go +++ b/pkg/bisect/bisect.go @@ -380,8 +380,8 @@ func (env *env) test() (*testResult, error) { if verr, ok := err.(*osutil.VerboseError); ok { env.log("%v", verr.Title) env.saveDebugFile(current.Hash, 0, verr.Output) - } else if verr, ok := err.(build.KernelBuildError); ok { - env.log("%v", verr.Title) + } else if verr, ok := err.(*build.KernelError); ok { + env.log("%s", verr.Report) env.saveDebugFile(current.Hash, 0, verr.Output) } else { env.log("%v", err) -- cgit mrf-deployment