Skip to content

Commit

Permalink
fix: improve error handling for missing targets in DistTable
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Dec 24, 2024
1 parent 93bb58f commit dcffc8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sherpa-rs-sys/src/download_binaries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl DistTable {
} else {
self.targets
.get(target)
.expect(format!("Target {} not found", target).as_str())
.unwrap_or_else(|| panic!("Target {} not found", target))
};
debug_log!(
"raw target_dist: {:?}",
Expand Down

0 comments on commit dcffc8b

Please sign in to comment.