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.
2 parents 879cd57 + 613b39e commit 6e576ddCopy full SHA for 6e576dd
cmd/parca-debuginfo/main.go
@@ -163,6 +163,10 @@ func run(kongCtx *kong.Context, flags flags) error {
163
164
buf.SeekStart()
165
upload.size = int64(buf.Len())
166
+
167
+ if upload.size == 0 {
168
+ return fmt.Errorf("extracted debug information from %q is empty, but must not be empty", upload.path)
169
+ }
170
}
171
} else {
172
for _, path := range flags.Upload.Paths {
@@ -192,6 +196,10 @@ func run(kongCtx *kong.Context, flags flags) error {
192
196
return fmt.Errorf("stat file: %w", err)
193
197
194
198
199
+ if fi.Size() == 0 {
200
+ return fmt.Errorf("file %q is empty, but must not be empty", path)
201
202
195
203
uploads = append(uploads, &uploadInfo{
204
buildID: buildID,
205
path: path,
0 commit comments