Skip to content

Throw an error if registries folder does not exist #30

@jalvarezit

Description

@jalvarezit

Motivation

auth-oci/io.go

Line 18 in c95d1b6

filepath.Walk(dir, func(path string, info os.FileInfo, err error) error {

If there is no registries directory it ends up in a empty list throwing a misleading error:

auth-oci/io.go

Line 69 in c95d1b6

panic(fmt.Sprintf("Registry %s not found", url))

Acceptance criteria

A more descriptive error should be thrown

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions