Skip to content

Handle Shopify API errors better #75

@sshane

Description

@sshane

If a Shopify query returns a error status, this is what we see:

Image

Because we try to access response when it isn't defined in the case of errors:

throw error(response.status, {
message: `Product ${productId} not found`,
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions