Error thrown when `error` is not an object
axellbrendow opened this issue · 0 comments
axellbrendow commented
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)