Skip to content

Commit

Permalink
Merge pull request #674 from grainme/fix-graceful-url-parsing
Browse files Browse the repository at this point in the history
fix: improve error handling for URLs without scheme
  • Loading branch information
hatoo authored Jan 25, 2025
2 parents 3dad515 + d3ddf5b commit 5aaaca3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,11 @@ fn main() {
.enable_all()
.build()
.unwrap();
rt.block_on(run()).unwrap();

if let Err(e) = rt.block_on(run()) {
eprintln!("Error: {}", e);
std::process::exit(libc::EXIT_FAILURE);
}
}

enum WorkMode {
Expand Down

0 comments on commit 5aaaca3

Please sign in to comment.