Exceptions are logged instead of thrown
See original GitHub issueRight now because of Vue’s built-in error handling, exceptions are logged to console.error
rather than thrown. During test running it will generally make more sense for these errors to fail the tests, but as they are just logged this doesn’t happen.
As a stopgap solution Vue.config.errorHandler
can be set at the top of every test, but this is a bit less than ideal and it would be better if this could be configured through Avoriaz.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Throw exception vs Logging - java - Stack Overflow
With respect to logging vs. throwing, they're two separate concerns. Throwing an exception will interrupt your execution, ...
Read more >Should I log errors on exception throwing constructors?
Not sure if it qualifies as an anti-pattern, but IMO it's a bad idea: it's unnecessary coupling to intertwine an exception with logging....
Read more >Either log or rethrow Java exceptions, but never do both
When an exception occurs in your Java code, you can log it or you can rethrow it -- but don't do both. Here's...
Read more >Logging Exceptions in Java - Loggly
A look at common approaches to exception handling and logging in Java. ... Rather than log directly at the source, we can pass...
Read more >Throwing, Catching, and Logging Exceptions - IBM
According to the Java Language Specification, runtime exceptions should be thrown when the caller has provided erroneous input (in essence, breached the method ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey Eddy, sorry I got busy getting some other infrastructure in place for our first Vue apps. I am and I’ll try to do that today or this weekend.
I see, I just upgrade to 2.0.0 and it works now. I’ll have that PR soon.