Skip to content

Error thrown when error is not an object #149

@axellbrendow

Description

@axellbrendow

I have a script that runs npm install through the shelljs package. And when npm install fails, shelljs throws me the status code npm install returned.

But listr considers that the exceptions that are thrown are always objects. I can see this when you do error.context = context on /listr/index.js:113

In this case, the code tried to do 1.context = context (where 1 is what shelljs throwed)

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