diff --git a/cmd/bpf2go/gen/output.go b/cmd/bpf2go/gen/output.go index 56ab312c7..666859895 100644 --- a/cmd/bpf2go/gen/output.go +++ b/cmd/bpf2go/gen/output.go @@ -221,7 +221,7 @@ func sortTypes(typeNames map[btf.Type]string) ([]btf.Type, error) { } if names[i] == name { - return nil, fmt.Errorf("type name %q is used multiple times", name) + return nil, fmt.Errorf("type name %q is used multiple times (remove its --type flag?)", name) } types = append(types[:i], append([]btf.Type{typ}, types[i:]...)...)