Skip to content

Commit

Permalink
fix: 改进错误处理,详细记录错误原因和回溯信息
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Feb 17, 2025
1 parent 7974ada commit 173e9fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ fn main() -> Result<()> {
} else if args[1] == "run" {
setprop("fas-rs-server-started", "true");
run(&args[2]).unwrap_or_else(|e| {
error!("{e:#?}");
for cause in e.chain() {
error!("{:#?}", cause);
}
error!("{:#?}", e.backtrace());
});
}
Expand Down

0 comments on commit 173e9fc

Please sign in to comment.