Skip to content

Misleading error message on bad exec payload from flag #54

Open
@eyal-mor

Description

@eyal-mor

Original Author: @slonokot

Running shore exec with bad JSON payload will produce misleading error message:

$ shore exec -p '{"application": "a", "pipeline": "b",,,}'
required args key 'pipeline' missing
required args key 'application' missing
$ shore exec -p '{"application": "a", "pipeline": "b}'
required args key 'pipeline' missing
required args key 'application' missing
$ shore exec -p '{"application": "a", "pipeline": "b", "parameters":}'
required args key 'pipeline' missing
required args key 'application' missing

The expected behaviour simillar to shore render's one:

"While parsing config: unexpected end of JSON input"

Metadata

Metadata

Assignees

No one assigned

    Labels

    DevXDeveloper Experience relatedbugSomething isn't workingexecRelated to "shore exec"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions