Skip to content

Refactoring: proper handling of filepath.Glob errors #396

@Zebradil

Description

@Zebradil

In several places we use the filepath.Glob function that can return an error if the glob expression is invalid. We do not always properly handle this error.

There are two options of how to approach this:

  1. Catch the error where the filepath.Glob function is used and return it to the caller scope.
  2. Validate glob expressions somewhere closer to the top of the call stack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions