Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error thrown when error is not an object #149

Open
axellbrendow opened this issue Jul 25, 2020 · 0 comments
Open

Error thrown when error is not an object #149

axellbrendow opened this issue Jul 25, 2020 · 0 comments

Comments

@axellbrendow
Copy link

axellbrendow commented Jul 25, 2020

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant