Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
6aef01e
seed commit for fatality based errors
drahnr Dec 2, 2021
86cb205
fatality
drahnr Dec 2, 2021
61605f7
first draft of fatality
drahnr Dec 2, 2021
7789e08
cleanup
drahnr Dec 3, 2021
df37cbf
differnt approach
drahnr Dec 3, 2021
8254614
simplify
drahnr Dec 3, 2021
ec8564e
first working version for enums, with documentation
drahnr Dec 3, 2021
a59a2c4
add split
drahnr Jan 21, 2022
bef8549
fix simple split test case
drahnr Jan 21, 2022
226bbb4
extend README.md
drahnr Jan 21, 2022
fb14c73
update fatality impl
drahnr Jan 25, 2022
9a5e3ca
make tests passed
drahnr Jan 25, 2022
3e4dce0
apply fatality to first subsystem
drahnr Jan 26, 2022
ef4a734
fatality fixes
drahnr Jan 28, 2022
50b56ea
use fatality in a subsystem
drahnr Jan 30, 2022
664a1c9
fix subsystemg
drahnr Jan 30, 2022
0db9f15
fixup proc macro
drahnr Jan 30, 2022
a67484e
fix/test: log::*! do not execute when log handler is missing
drahnr Feb 1, 2022
eb6a205
fix spelling
drahnr Feb 1, 2022
d770480
rename Runtime2 to something sane
drahnr Feb 1, 2022
47b2335
allow nested split with `forward` annotations
drahnr Feb 4, 2022
e24e302
add free license
drahnr Feb 4, 2022
3fc6cd4
enable and fixup all tests
drahnr Feb 4, 2022
346fd5b
use external fatality
drahnr Feb 23, 2022
859922a
bump fatality dep
drahnr Feb 23, 2022
6b29441
migrate availability distribution
drahnr Feb 23, 2022
5b00044
more fatality usage
drahnr Feb 23, 2022
ffb66e3
chore: bump fatality to 0.0.6
drahnr Feb 23, 2022
df26cbf
fixup remaining subsystems
drahnr Feb 23, 2022
9466d1c
chore: fmt
drahnr Feb 23, 2022
6ca4079
make cargo spellcheck happy
drahnr Feb 23, 2022
721e1ec
remove single instance of `#[fatal(false)]`
drahnr Feb 24, 2022
3c3adba
last quality sweep
drahnr Feb 25, 2022
c5d7d10
fixup
drahnr Feb 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix spelling
  • Loading branch information
drahnr committed Feb 25, 2022
commit eb6a205f8800781c4f877aa1f1a8a62de0ac2cec
4 changes: 2 additions & 2 deletions node/fatality/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ pub trait Split: std::error::Error + std::fmt::Debug {

/// Split the error into it's fatal and non-fatal variants.
///
/// `Ok(jfyi)` contains a enum representing all non-fatal varians, `Err(fatal)`
/// `Ok(jfyi)` contains a enum representing all non-fatal variants, `Err(fatal)`
/// contains all fatal variants.
///
/// Attention: If the type is splitable, it must _not_ use any `forward`ed finality
/// evalutions, or it must be splitable up the point where no more `forward` annotations
/// evaluations, or it must be splitable up the point where no more `forward` annotations
/// were used.
fn split(self) -> std::result::Result<Self::Jfyi, Self::Fatal>;
}
Expand Down