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

"undefined" and .catch #197

Closed
devsnek opened this issue Nov 27, 2016 · 4 comments
Closed

"undefined" and .catch #197

devsnek opened this issue Nov 27, 2016 · 4 comments

Comments

@devsnek
Copy link

devsnek commented Nov 27, 2016

if i put in some text that will be handled by vorpal.catch, and it contains "undefined", this error is thrown

> this is undefined
readline.js:983
            throw err;
            ^

Error: vorpal._exec was called with an undefined command.
    at Vorpal.vorpal._exec (node_modules/vorpal/dist/vorpal.js:787:11)
    at Vorpal.vorpal._execQueueItem (node_modules/vorpal/dist/vorpal.js:751:17)
    at Vorpal.vorpal._queueHandler (node_modules/vorpal/dist/vorpal.js:735:10)
    at Vorpal.vorpal.exec (node_modules/vorpal/dist/vorpal.js:682:10)
    at node_modules/vorpal/dist/vorpal.js:625:10
    at module.exports.completed (node_modules/vorpal/dist/ui.js:219:13)
    at module.exports.PromptUI.onCompletion (node_modules/vorpal/node_modules/inquirer/lib/ui/prompt.js:57:10)
    at AnonymousObserver.Rx.AnonymousObserver.AnonymousObserver.completed (node_modules/rx-lite/rx.lite.js:1550:12)
    at AnonymousObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (node_modules/rx-lite/rx.lite.js:1489:14)
    at Subject.onCompleted (node_modules/rx-lite/rx.lite.js:5871:19)
@devsnek devsnek closed this as completed Apr 22, 2018
@noambenami
Copy link

Why was this ticket closed with no comments? I'm being affected by this ATM...

@jcar787
Copy link

jcar787 commented Aug 29, 2018

I'm having this issue too.
Is there any solution on how to avoid this?

@devsnek devsnek reopened this Aug 29, 2018
@jcar787
Copy link

jcar787 commented Aug 29, 2018

In my case if I have the word undefined in one of my commands this triggers the issue. I don't know if that helps somehow to debug it.

@noambenami
Copy link

Looking at the commit history here, it is clear that this project is dead.

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

3 participants