Skip to content

Improve diagnostic message for invalid yaml path #30

Description

@ns-dkoblas

In the function async function fetchContent(client: github.GitHub, repoPath: string): Promise<string> {

In the event that the YAML file is not found, you returned the following diagnostics:

HttpError: Not Found
Error: Not Found

Ideally the client.repos.getContents call is wrapped and could return / log that it was unable to load the file rather than a generic HTTP error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions