mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 09:39:08 +00:00
catch error with descriptor missing platform
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
parent
25c8e68f98
commit
33180047f5
@ -316,6 +316,9 @@ func (p Pkg) Build(bos ...BuildOpt) error {
|
||||
if desc == nil {
|
||||
return fmt.Errorf("no valid descriptor returned for image for arch %s", platform.Architecture)
|
||||
}
|
||||
if desc.Platform == nil {
|
||||
return fmt.Errorf("descriptor for platform %v has no information on the platform: %#v", platform, desc)
|
||||
}
|
||||
descs = append(descs, *desc)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user