Merge pull request #647 from filcloud/fix/646-slice-empty
add empty slice check
This commit is contained in:
commit
d680dab52e
@ -230,6 +230,10 @@ var clientRetrieveCmd = &cli.Command{
|
||||
|
||||
// TODO: parse offer strings from `client find`, make this smarter
|
||||
|
||||
if len(offers) < 1 {
|
||||
fmt.Println("Failed to find file")
|
||||
return nil
|
||||
}
|
||||
order := offers[0].Order()
|
||||
order.Client = payer
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user