SamVerschueren / listr

Terminal task list

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error thrown when `error` is not an object

axellbrendow opened this issue · comments

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)