358 Commits

Author SHA1 Message Date
Joel Montes de Oca
c32a8d0b67
Grammer/typo (#85) 2022-08-19 14:11:29 -07:00
Tim Diekmann
dba523177e
Fix stacked borrows when dropping Error (#81) 2022-07-07 12:01:42 -07:00
Jane Lusby
64f88d7279
Add community discord to readme (#76) 2022-05-18 17:15:50 -07:00
Jane Lusby
b8f3892754
Release 0.6.8 (#74)
* Update changelog for new release

* Add recommendations on API stability

* (cargo-release) version 0.6.8
2022-04-04 10:31:50 -07:00
Philipp Oppermann
4f9661522b
Mark Report as #[must_use] (#73)
Not using the error type after construction is a common mistake. This can also easily happen with the provided macros, when using `eyre!` instead of `eyre::bail!`. By marking the type as `#[must_use]`, the compiler warns us in such cases.
2022-03-30 07:31:37 -07:00
William D. Jones
769e26e4ab
Add must-install feature, so that a non-default handler can be the on… (#52)
* Add must-install feature, so that a non-default handler can be the only handler consuming .text.

* Provide a better panic message if `must-install` feature is enabled.

Co-authored-by: Jane Lusby <jlusby42@gmail.com>

* Bump version because new feature was added.

* Convert must-install feature to auto-install to avoid negative features.

* Add ability to manually install DefaultHandler (for when auto-install is disabled).

* Ensure doctests pass when auto-install feature is disabled.

* Integration tests now succeed without auto-install feature.

* Add integration test for when auto-install feature is disabled.

* Add auto-install feature testing to CI.

* cargo fmt.

Co-authored-by: Jane Lusby <jlusby42@gmail.com>
Co-authored-by: Jane Lusby <jlusby@yaah.dev>
2022-03-25 13:32:39 -07:00
Jane Lusby
f4ebce4518
release 0.6.7 (#71)
* update changelog

* (cargo-release) version 0.6.7
2022-02-24 21:10:36 -08:00
Ana Hobden
3eedb84fe0
Add #[track_caller] to format_err (#70)
Signed-off-by: Ana Hobden <operator@hoverbear.org>
2022-02-24 17:06:32 -08:00
Jeremy Banks
2c9a940e1d
docs: correct "eyre::Error" to "eyre::Report" (#69) 2022-01-31 10:25:08 -08:00
Jane Lusby
fb77d1b783
Release 0.6.6 (#67)
* update changelog

* mention new format args capture in docs

* cfg doctest to compile on all versions of rustc

* update field for newer versions of cargo release

* (cargo-release) version 0.6.6
2022-01-19 15:44:40 -08:00
x-hgg-x
7c7155f677
Support format arguments capture (#66)
* Support format arguments capture

* Fix tests
2022-01-19 15:06:40 -08:00
Jane Lusby
18404ad340
Merge pull request #55 from yaahc/helpful
update references to renamed Help trait
2021-07-23 09:23:29 -07:00
Jane Lusby
f7cf03ca5b update references to renamed Help trait 2021-07-23 09:19:14 -07:00
Jane Lusby
54933ea76d
Release 0.6.5 (#49)
* Release 0.6.5

* (cargo-release) version 0.6.5
2021-07-01 22:18:00 +00:00
Ryan Butler
1ea7c204e6
Add support for conversion to pyo3::PyErr (#47)
* Added convertion to pyo3::PyErr gated behind feature flag

* Added test_pyo3

* fix ci to not test unsupportable feature msrv

* fix rustfmt

Co-authored-by: Jane Lusby <jlusby@yaah.dev>
2021-01-05 09:49:15 -08:00
Jane Lusby
60218fff20
Add track_caller on APIs missing it (#48)
This change adds `track_caller` annotations to `context.rs` on various trait helper methods (`wrap_err`) that were missing it. It also adds tests for these APIs to ensure that the location captured is in the file that created the error.
2021-01-04 18:08:27 +00:00
Jane Lusby
8e5d24a73f
New minor version release for track caller fixes (#43)
* Update changelog

* (cargo-release) version 0.6.3

* (cargo-release) start next development iteration 0.6.4-alpha.0
2020-11-11 15:48:38 -08:00
Ivan Smirnov
914da85eb5
Add #[track_caller] for adhoc errors (#42) 2020-11-10 10:48:40 -08:00
Jane Lusby
0722bab8ea
fix missing track caller annotation (#40)
* fix missing track caller annotation

* (cargo-release) version 0.6.2

* (cargo-release) start next development iteration 0.6.3-alpha.0
2020-10-27 12:46:16 -07:00
Kevin Menard
44a6857093
Fix typos. (#39) 2020-10-08 12:41:28 -07:00
Jane Lusby
032d879381
Implement track caller support for eyre::Report (#36)
* Implement track caller support for eyre::Report

* fix errors on old compiler version

* fix tests

* add a changelog

* (cargo-release) version 0.6.1-rc.1

* Allow missing replacement for diff range

* maybe it has to be deleted

* okay try removing it entirely...

* (cargo-release) version 0.6.1

* (cargo-release) start next development iteration 0.6.2-alpha.0

* add back missing replacement
2020-09-28 19:38:53 -07:00
Za Wilcox
8c4cb4f66e
fixed minor errors in README, ?enhanced? punny-ness (#33)
Co-authored-by: zancas <zancas@zingolabs.com>
2020-08-24 14:31:49 -07:00
Jane Lusby
f39eaff0b2
Switch report handler to a global hook (#29)
* Switch report handler to a global hook

* more cleanup

* remove default from example

* remove broken support for no_std

* back out the unneeded nostd check

* remove one stackframe when capturing a Handler

* update docs and prep for release

* port lib.rs docs updates to readme
2020-07-05 19:04:31 -07:00
Jane Lusby
96ddb39cd0
fix type inference issue in eyre macro autoderef behavior (#27)
* fix type inference issue in eyre macro autoderef behavior

* use the upstream example

* update testcase compile err output

* remove cruft

* bump version for breaking change
2020-06-21 10:41:56 -07:00
Jane Lusby
fd00a3bbab
Rename EyreContext to EyreHandler (#26)
* Rename EyreContext to EyreHandler

* bump version for new release

* use pub use for aliases
2020-06-02 13:59:09 -07:00
Duncan R Hamill
be64ee415a
Fixed use of std::fmt rather than core::fmt (#22)
Co-authored-by: Jane Lusby <jlusby@yaah.dev>
2020-05-29 17:51:00 -07:00
Basit Ayantunde
3621a4b66e
Fixed typo (#23) 2020-05-29 08:38:47 -07:00
Alex Chan
98a2d3085d
Remove unwanted apostrophe from “its ability” (#21) 2020-05-22 19:20:01 -07:00
Jane Lusby
86c1267aab
bump indenter dep version and update readme
* Update testing

* dont bother testing no_std yet ...

* bump version for new release with fixed indenter

* add documentation about custom context crates
2020-05-17 10:37:33 -07:00
Jane Lusby
dbc3cc181e bump minor version for compat trait 2020-05-07 11:01:12 -07:00
Jane Lusby
6daf46c7aa
Add ContextCompat trait for porting from anyhow (#15) 2020-05-07 10:54:28 -07:00
Jane Lusby
d525c1fc0a
remove member access fns and backtrace fn (#14)
* remove member access fns and

* fix nightly errors

* bring back the test i accidentally removed
2020-05-04 12:20:46 -07:00
Jane Lusby
1e1eb56abf
remove br from docs and fix compile_fail docs (#13) 2020-05-03 15:23:20 -07:00
Jane Lusby
38a2e706dd
simplify docs and add back compat support (#12)
* simplify docs

* improve docs a little more
2020-05-03 13:40:02 -07:00
Jane Lusby
34fe97f15f Merge upstream changes 2020-04-29 21:00:54 -07:00
Jane Lusby
273ce8c818 Merge branch 'master' of github.com:yaahc/eyre 2020-04-29 20:59:18 -07:00
Jane Lusby
a5bf9babaf update description 2020-04-29 20:58:04 -07:00
Félix Saparelli
fa398e764c
Fix strings on last few examples (#11) 2020-04-25 06:22:43 -07:00
David Tolnay
150abf1270
Run clippy on latest nightly that has clippy 2020-04-23 10:36:31 -07:00
Jane Lusby
3ac0be8322
merge upstream changes from anyhow (#10) 2020-04-13 09:19:24 -07:00
Jane Lusby
e3bf56ef5c
Rename ErrReport to Report (#9)
* Rename ErrReport to Report

* bump versions to prep for a release
2020-04-13 09:10:30 -07:00
Jane Lusby
6b601f8215
Propogate context to the top most error when wrapping inner errors (#5)
* Propogate context when wrapping errors with Option::take

* fix test failure in fmt output

* bump version for release
2020-04-07 14:26:48 -07:00
Jane Lusby
7a9d480c99 provide a default impl for the Display trait 2020-04-07 13:05:33 -07:00
Pascal Hertleif
ab76683def Fix tracing_error::SpanTrace link in Readme
Just a quick drive-by commit :)
2020-04-05 05:15:48 -07:00
David Tolnay
022f700a1c
Release 1.0.28 2020-03-30 16:21:57 -07:00
David Tolnay
e2eb1f5263
Merge pull request #78 from dtolnay/cfg
Use doc_cfg to mark Error::new
2020-03-30 16:20:09 -07:00
David Tolnay
d65ec5ed2f
Use doc_cfg to mark Error::new 2020-03-30 16:15:38 -07:00
David Tolnay
e46df9f4a5
Rephrase nightly backtrace note 2020-03-19 23:08:52 -07:00
David Tolnay
946bff8a54
Merge pull request #73 from lzybkr/nightly_in_docs
Mention nightly more prominently
2020-03-19 23:05:54 -07:00
Jason Shirk
a07b84b641 Mention nightly in module docs 2020-03-19 22:31:33 -07:00