Skip to content

Commit

Permalink
add warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Aug 22, 2024
1 parent 6d636c1 commit 2377c84
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/namespaces/registry/v1/custom_tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/scaleway/scaleway-cli/v2/internal/core"
"github.com/scaleway/scaleway-cli/v2/internal/human"
"github.com/scaleway/scaleway-sdk-go/api/registry/v1"
"github.com/scaleway/scaleway-sdk-go/logger"
)

//
Expand Down Expand Up @@ -44,14 +45,16 @@ func tagGetBuilder(c *core.Command) *core.Command {
ImageID: tag.ImageID,
})
if err != nil {
return getTagResp, err
logger.Warningf("cannot get image %s %s", tag.ImageID, err)
return getTagResp, nil
}

namespace, err := api.GetNamespace(&registry.GetNamespaceRequest{
NamespaceID: image.NamespaceID,
})
if err != nil {
return getTagResp, err
logger.Warningf("cannot get namespace %s %s", image.NamespaceID, err)
return getTagResp, nil
}

res := customTag{
Expand Down

0 comments on commit 2377c84

Please sign in to comment.