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

Better error when launched without AVA cli #179

Closed
timoxley opened this issue Nov 10, 2015 · 1 comment · Fixed by #191
Closed

Better error when launched without AVA cli #179

timoxley opened this issue Nov 10, 2015 · 1 comment · Fixed by #191
Labels
bug current functionality does not work as desired

Comments

@timoxley
Copy link
Contributor

Perhaps throw a more explicit error because at the moment it appears to crash and complain about lack of process.send:

> node test/index.js
Warning: a promise was rejected with a non-error: [object Undefined]
    at /Users/timoxley/Projects/tests/node_modules/ava/lib/runner.js:163:20
From previous event:
    at Runner.run (/Users/timoxley/Projects/tests/node_modules/ava/lib/runner.js:161:4)
    at Immediate._onImmediate (/Users/timoxley/Projects/tests/node_modules/ava/index.js:53:9)
    at processImmediate [as _immediateCallback] (timers.js:374:17)

Unhandled rejection TypeError: process.send is not a function
    at exit (/Users/timoxley/Projects/tests/node_modules/ava/index.js:42:10)
From previous event:
    at Immediate._onImmediate (/Users/timoxley/Projects/tests/node_modules/ava/index.js:53:15)
    at processImmediate [as _immediateCallback] (timers.js:374:17)

Related #97

@timoxley timoxley changed the title Better error when launched without ava cli Better error when launched without AVA cli Nov 10, 2015
@sindresorhus sindresorhus added the bug current functionality does not work as desired label Nov 10, 2015
@sindresorhus
Copy link
Member

Agreed. I've already seen this, but forgot to open an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug current functionality does not work as desired
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants