Improved traps, now fully working

This commit is contained in:
Syrus Akbary
2021-07-14 12:26:18 -07:00
parent 93b84110e9
commit 40df4455da
3 changed files with 27 additions and 24 deletions

View File

@@ -642,7 +642,6 @@ fn test_custom_error() {
);
}
Err(e) => {
assert!(false, "Unknown error `{:?}`", e);
match e.downcast::<ExitCode>() {
// We found the exit code used to terminate execution.
Ok(exit_code) => {