mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 11:15:54 +03:00
[GH-ISSUE #318] Heavy-weight errors #144
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vorner on GitHub (Dec 17, 2017).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/318
Hello
I believe it makes little sense to mandate that every error in that crate has a backtrace on it, eg: https://docs.rs/trust-dns-proto/0.2.0/trust_dns_proto/error/struct.ProtoError.html.
I think so for two reasons:
@bluejekyll commented on GitHub (Dec 17, 2017):
There is also a discussion I've had on switch to the
Failuretraits and away fromerror-chain. I'm open to reducing the backtrace usage, though it is useful for debugging issues. Perhaps we should make it a feature that is on or off by default.@vorner commented on GitHub (Dec 18, 2017):
Well, the Failure could work. The backtrace is optional there (the error is free to not provide it) and the
Errorthere does a snapshot of the stack, but resolves the backtrace only if it gets actually produced, so even that is much more light weight.@DemiMarie commented on GitHub (Feb 18, 2018):
I’ll take this for a school project.
@bluejekyll commented on GitHub (Feb 18, 2018):
#326 is the issue to migrate to failures.
I implemented my first failure resently. It may not be an obvious transition in some cases. Definitely reach out for help, you’re going to run into some old ugly code in spots.
@briansmith commented on GitHub (Apr 23, 2018):
This was fixed in PR #416.
@bluejekyll commented on GitHub (Jun 12, 2018):
This was fixed completely with the conversion to Failure.