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

reporters: print all details of exception, not only the stack #321

Merged

Conversation

knocte
Copy link
Contributor

@knocte knocte commented Dec 27, 2016

It's fine if canopy wants to highlight the error by printing
the exception message first, the URL, and then the details.

But the details of it shouldn't be just the stacktrace because:

  • It doesn't contain the type of the exception.
  • It doesn't contain details about InnerExceptions.

I found this the hard way: receiving a "One or more errors
occurred" error, and not knowing what was going on for a while.
Later I realized that the exception was AggregateException
(which normally wraps exceptions that happen in async/parallel
code), and that it had the best explanation in the InnerException
of it.

It's fine if canopy wants to highlight the error by printing
the exception message first, the URL, and then the details.

But the details of it shouldn't be just the stacktrace because:
- It doesn't contain the type of the exception.
- It doesn't contain details about InnerExceptions.

I found this the hard way: receiving a "One or more errors
occurred" error, and not knowing what was going on for a while.
Later I realized that the exception was AggregateException
(which normally wraps exceptions that happen in async/parallel
code), and that it had the best explanation in the InnerException
of it.
@lefthandedgoat lefthandedgoat merged commit cb3e8a6 into lefthandedgoat:master Dec 28, 2016
@lefthandedgoat
Copy link
Owner

You can find a new package here: https://www.nuget.org/packages/canopy/1.0.7

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

Successfully merging this pull request may close these issues.

2 participants