diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-05-04 11:53:39 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-05-04 12:56:35 +0200 |
| commit | 9db9698ba2e220f664693c3b0b6efcbec816b50e (patch) | |
| tree | 84998697103a6c1ceb06874dca6374cf92c3051b /tools/syz-kconf | |
| parent | e2276038b91e5c376f4d3daaf33f370689849fea (diff) | |
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.
Diffstat (limited to 'tools/syz-kconf')
| -rw-r--r-- | tools/syz-kconf/parser.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
