Skip to content

Commit

Permalink
Merge pull request #1417 from hannobraun/panic
Browse files Browse the repository at this point in the history
Fix double panic due to validation errors
  • Loading branch information
hannobraun authored Dec 5, 2022
2 parents a6b2f94 + 02f2c70 commit 349dbd8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/fj-kernel/src/services/validation.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::collections::BTreeMap;
use std::{collections::BTreeMap, thread};

use crate::{
objects::{BehindHandle, Object},
Expand All @@ -23,7 +23,9 @@ impl Drop for Validation {
println!("{err}");
}

panic!();
if !thread::panicking() {
panic!();
}
}
}
}
Expand Down

0 comments on commit 349dbd8

Please sign in to comment.