Comments (3)
Oh I didn't know there is extended Display wow :D Ok that solves it yeah, thanks!
from hash.
Hi @FlixCoder and thanks for your issue, glad you like error-stack
! 🙂
The behavior you described is expected behavior. To Display
an error, error-stack
uses the same behavior as anyhow
:
Display
only prints the latest context/error:println!("Error: {err}")
will print"Error: Error B"
- extended
Display
prints all contexts:println!("Error: {err:#}")
will print"Error: Error B: Error A"
Debug
prints the full stack of errors:println!("Error: {err:?}")
will printError: Error B ├╴ main.rs:18:25 │ ╰─▶ Error A ├╴ main.rs:23:5 ╰╴ backtrace with 15 frames (1) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ backtrace no. 1 [redacted]
Does this solve your issue?
I attach information like
result.attach(Retryable::Yes)
That's a really cool way to utilize attachments! 🎉
from hash.
It would be cool if there were a a pretty printed version of the the extended version. In contrast to Debug
it shouldn't include the locations and backtrace as it is to much Information for an user.
The example from the README could look like this:
could not parse configuration file
├╴could not read file "test.txt"
├╴1 additional opaque attachment
│
╰─▶ No such file or directory (os error 2)
from hash.
Related Issues (20)
- Automatic conversion from errors to error stack? HOT 2
- Attachments are misaligned on 0.3.0 HOT 5
- GEN-68: `.into_report()` doesn't include error source chains HOT 8
- H-1: Support loading blocks in # Storybook
- [H-2] Make headings in hash.dev blog posts anchor-linkable HOT 1
- H-3: Add all HASH blocks to # Storybook
- [H-4] Add blurhash to hash.dev slide component HOT 1
- H-5: Automate publishing of new/updated HASH blocks to the block gallery & # Storybook
- H-7: Update hash.dev styles to match those in Figma HOT 2
- error[E0554]: `#![feature]` may not be used on the stable release channel HOT 10
- error[E0658]: use of unstable library feature 'lazy_cell' HOT 2
- [H-12] Change title of hash.dev/blog/[post] pages HOT 1
- [H-13] hash.dev: appropriately comma separate author names when articles have 3 or more HOT 1
- hCloud Error when running experiment for Python Model - Using Pandas library HOT 1
- `Report<E>` is not compatible with `std::error::Error` HOT 2
- Action Required: Fix Renovate Configuration HOT 2
- 🚀 Dependency Updates
- `IntoReport` is deprecated, but `ReportExt` that replaces it is not in `error-stack` HOT 2
- GEN-108(issue): Show some minimal but working example on the main documentation page HOT 7
- GEN-115: Way to disable error location and/or backtrace HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hash.