Better error handling
This commit is contained in:
parent
5b396e7b5e
commit
6a0846e129
@ -41,7 +41,9 @@ func (cmd *DebianCacheCmd) Run() (err error) {
|
|||||||
|
|
||||||
var dk debian.DebianKernel
|
var dk debian.DebianKernel
|
||||||
dk, err = debian.GetDebianKernel(version)
|
dk, err = debian.GetDebianKernel(version)
|
||||||
if err != nil {
|
if err == debian.ErrNoBinaryPackages {
|
||||||
|
slog.Warn().Err(err).Msg("")
|
||||||
|
} else if err != nil {
|
||||||
slog.Error().Err(err).Msg("get debian kernel")
|
slog.Error().Err(err).Msg("get debian kernel")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user