From 9db9698ba2e220f664693c3b0b6efcbec816b50e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 4 May 2021 11:53:39 +0200 Subject: tools/syz-kconf: print instance name on parsing errors Parsing error may depend on the instance config. For some errors it's hard to understand why it happens without knowing the instance name. --- tools/syz-kconf/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/syz-kconf/parser.go b/tools/syz-kconf/parser.go index 6f46151ed..3419ea859 100644 --- a/tools/syz-kconf/parser.go +++ b/tools/syz-kconf/parser.go @@ -104,7 +104,7 @@ func parseMainSpec(file string) ([]*Instance, []string, error) { } inst, err := parseInstance(name, filepath.Dir(file), features, raw.Includes) if err != nil { - return nil, nil, err + return nil, nil, fmt.Errorf("%v: %v", name, err) } instances = append(instances, inst) if constraintsInclude(features, featBaseline) { -- cgit mrf-deployment