-
Notifications
You must be signed in to change notification settings - Fork 72
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
Error handling doesn't work for throw newError() in async function #314
Comments
I have created an async example project. https://github.com/mucsi96/nightwatch-cucumber-async-await-example Throwing an exeption in any step definition if catched fine by cucumber.js. So don't see any issue here. |
Thanks, async error handling works fine in steps_definition, but in page object files works like in screenshot above |
@IvanNaumenko As I can see in the code example from the first post in the thread, you intentionally caught the error and logged it to the console without throwing it further. Have you tried to remove the |
I've understood my false. Works! |
Can you pls write the correct way of catching exception? Thank you |
Can you pls write the correct way of catching exception? Thank you |
ok, duplicate issue from nightwatch, becouse i don't know who could help...
how to forward my mistake to ERROR and got false in result?
throw new Error('some error');
The text was updated successfully, but these errors were encountered: