fix: do not quit on error
This commit is contained in:
parent
ee232dc54a
commit
edfaf68b11
@ -159,6 +159,14 @@ func (cmd *KernelCmd) GenKernel(km artifact.Target, pkg string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (cmd *KernelCmd) Generate(g *Globals, km artifact.Target) (err error) {
|
func (cmd *KernelCmd) Generate(g *Globals, km artifact.Target) (err error) {
|
||||||
|
defer func() {
|
||||||
|
if err != nil {
|
||||||
|
log.Warn().Err(err).Msg("")
|
||||||
|
} else {
|
||||||
|
log.Debug().Err(err).Msg("")
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
|
||||||
if cmd.Update {
|
if cmd.Update {
|
||||||
container.UseCache = false
|
container.UseCache = false
|
||||||
}
|
}
|
||||||
@ -349,7 +357,7 @@ func (cmd *KernelGenallCmd) Run(kernelCmd *KernelCmd, g *Globals) (err error) {
|
|||||||
|
|
||||||
err = kernelCmd.Generate(g, target)
|
err = kernelCmd.Generate(g, target)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user