1
0

Better error handling

This commit is contained in:
2023-05-11 20:26:39 +00:00
parent 5b396e7b5e
commit 6a0846e129

View File

@ -41,7 +41,9 @@ func (cmd *DebianCacheCmd) Run() (err error) {
var dk debian.DebianKernel
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")
continue
}