Skip to content

Commit

Permalink
🎨 Call panic function instead of using panic field
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixr-codes committed Oct 18, 2024
1 parent 7b12d87 commit 6d46f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ impl Project {
Ok(res) => log::info!("[{}] {}", name, String::from_utf8_lossy(res.as_slice())),
Err(e) => {
log::error!("Failed to run plugin {}: {}", name, e);
if plugin.panic {
if plugin.panic() {
return Err(e);
}
}
Expand Down

0 comments on commit 6d46f0a

Please sign in to comment.