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

Add option to disable error message on process exit #132

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eykrehbein
Copy link

When an error has been thrown in any of the tasks, this kind of error will be thrown at the end of all tasks:

ListrError: Something went wrong
    at tasks.then (/Users/_/Development/projects/_/node_modules/listr/index.js:117:19)
    at process._tickCallback (internal/process/next_tick.js:68:7)

This pull requests adds an optional option to disable this error message. It can be used like:

new Listr(listrArray, {
    errorOnExit: false // not to be confused with exitOnError
});	

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

Successfully merging this pull request may close these issues.

1 participant