mirror of
https://github.com/clearlinux/rkt.git
synced 2026-09-04 21:01:36 +00:00
rkt trust: print error when --prefix discovery finds nothing
This commit is contained in:
@@ -147,6 +147,10 @@ func getPubKeyLocations(prefix string, args []string) ([]string, error) {
|
||||
return nil, fmt.Errorf("--prefix meta discovery error: %v", err)
|
||||
}
|
||||
|
||||
if len(kls) == 0 {
|
||||
return nil, fmt.Errorf("meta discovery on %s resulted in no keys", prefix)
|
||||
}
|
||||
|
||||
return kls, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user