Skip to content

Commit

Permalink
More messages
Browse files Browse the repository at this point in the history
  • Loading branch information
JarcauCristian committed Jan 9, 2024
1 parent 5f5afab commit d867cb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ func (minioInstance *MinIO) getObject(url string, datasetPath string, forever bo
fmt.Println("Get Object: ", forever)

if forever {
expirationTime = "1000000h"
expirationTime = "100y"
} else {
expirationTime = "10m"
}
Expand All @@ -679,6 +679,7 @@ func (minioInstance *MinIO) getObject(url string, datasetPath string, forever bo
cmd.Stderr = &stderr
err := cmd.Run()
if err != nil {
fmt.Println(err)
return "", err
}

Expand All @@ -688,7 +689,6 @@ func (minioInstance *MinIO) getObject(url string, datasetPath string, forever bo
if err != nil {
return "", err
}
fmt.Println(data)

if data["status"].(string) != "success" {
return "", errors.New("could not get download link for the object")
Expand Down

0 comments on commit d867cb0

Please sign in to comment.