Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
fleetctl: return error when units were not found in registry
Browse files Browse the repository at this point in the history
  • Loading branch information
kayrus committed Mar 14, 2016
1 parent 8e1dd44 commit 6516506
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fleetctl/fleetctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,10 @@ func findUnits(args []string) (sus []schema.Unit, err error) {
filtered = append(filtered, *u)
}

if (len(filtered) == 0) {
return filtered, fmt.Errorf("Units not found in registry")
}

return filtered, nil
}

Expand Down

0 comments on commit 6516506

Please sign in to comment.