question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exceptions are logged instead of thrown

See original GitHub issue

Right 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:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisnicolacommented, Jun 23, 2017

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.

1reaction
chrisnicolacommented, Jun 14, 2017

I see, I just upgrade to 2.0.0 and it works now. I’ll have that PR soon.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found