1
0

Better error handling

This commit is contained in:
dump_stack() 2023-05-11 20:26:39 +00:00
parent 5b396e7b5e
commit 6a0846e129
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

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