Skip to content

confusing error messages when loading lists with heterogeneous elements #22

@julochrobak

Description

@julochrobak

The error messages are printed the other way around. For example:

$ echo '[1, {"id":1}]' | bin/comp -t json 'in'
failed to load in.json: expected object, got scalar (map[id:1])

instead it should be

$ echo '[1, {"id":1}]' | bin/comp -t json 'in'
failed to load in.json: expected scalar, got object (map[id:1])

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