We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
profiletool merge
1 parent a5ded54 commit 4a238a4Copy full SHA for 4a238a4
tools/profiletool/profiletool.go
@@ -87,6 +87,9 @@ func mergeProfiles() error {
87
if info.IsDir() {
88
return nil
89
}
90
+ if info.Size() == 0 {
91
+ return nil
92
+ }
93
profilePaths = append(profilePaths, path)
94
95
})
@@ -95,7 +98,7 @@ func mergeProfiles() error {
98
96
99
97
100
if len(profilePaths) == 0 {
- return errors.New("no profiles (or directories containing profiles) specified as positional arguments")
101
+ return errors.New("no non-empty profiles (or directories containing profiles) specified as positional arguments")
102
103
profiles := make([]*profile.Profile, len(profilePaths))
104
for i, profilePath := range profilePaths {
0 commit comments