Skip to content

Commit

Permalink
Fix wrong error returned for image index lookup
Browse files Browse the repository at this point in the history
Seems like this was the wrong error given that we are looking up image
label.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
  • Loading branch information
cpuguy83 committed Nov 12, 2021
1 parent bd81f8a commit 89eebc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container_restore_opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func WithRestoreImage(ctx context.Context, id string, client *Client, checkpoint
return func(ctx context.Context, client *Client, c *containers.Container) error {
name, ok := index.Annotations[checkpointImageNameLabel]
if !ok || name == "" {
return ErrRuntimeNameNotFoundInIndex
return ErrImageNameNotFoundInIndex
}
snapshotter, ok := index.Annotations[checkpointSnapshotterNameLabel]
if !ok || name == "" {
Expand Down

0 comments on commit 89eebc4

Please sign in to comment.