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)
I have a script that runs
npm installthrough theshelljspackage. And whennpm installfails,shelljsthrows me the status codenpm installreturned.But
listrconsiders that the exceptions that are thrown are always objects. I can see this when you doerror.context = contexton /listr/index.js:113In this case, the code tried to do
1.context = context(where 1 is whatshelljsthrowed)