Skip to content

Upload status error codes are not immediately obvious.  #1246

@AndrewBarber

Description

@AndrewBarber

Expected behavior

When uploading a theme using stencil push, stencil-cli should help the developer experience when reporting an error.

Actual behavior

The status code from the API is provided but does not help the developer diagnose the issue, eg.

not ok -- JobCompletionStatusCheckError: Job Failed

There was a problem saving your configuration settings. Double check edits and try again. (TR-4400)

Steps to reproduce behavior

An example would be to add a config.json value with a length of >64 characters, then use stencil-cli to upload the theme to a storefront.

Environment

Stencil-cli version stencil --version:
All

Node version node -v:
All

NPM version npm -v:
All

OS:
All

Notes

PR Incoming

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions