Skip to content

Commit

Permalink
Return error instead of panicking
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Oct 19, 2022
1 parent acce612 commit 5e2fbec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/fj-host/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ impl Watcher {
return Ok(None);
}
Err(err) => {
panic!("Error reloading model: {:?}", err);
return Err(err);
}
};

Expand Down

0 comments on commit 5e2fbec

Please sign in to comment.