diff --git a/pkg/modules/api/context.go b/pkg/modules/api/context.go index 7af15d0f..37c3a370 100644 --- a/pkg/modules/api/context.go +++ b/pkg/modules/api/context.go @@ -477,6 +477,9 @@ func (ctx *Context) BuildOutputFile() (string, error) { } return f }()) + if err != nil { + return "", fmt.Errorf("create files info: %w", err) + } archivePath := ctx.GeneratePath(".zip") out, err := os.Create(archivePath)