1
0

fix: do not quit on error

This commit is contained in:
dump_stack() 2024-02-21 08:27:34 +00:00
parent ee232dc54a
commit edfaf68b11
Signed by: dump_stack
GPG Key ID: C9905BA72B5E02BB

View File

@ -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
} }
} }