Skip to content

better error message when failing to load gist #3

Open
@jkulton

Description

@jkulton

Right now when the gist fails to load from GitHub's API we just show the generalized "Unsupported gist" error.

Instead, we could check the status code of the response.

  • If the response was a 200 and the gist has a markdown file, render the gist
  • If the response was a 200 and the gist doesn't have a markdown file, render the unsupported gist error
  • If the response is a non-200 maybe just render the message property from the API error directly (our users are likely developers, so maybe they would find the error message insightful)

Screen Shot 2022-01-27 at 8 35 16 PM

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