Skip to content

Commit

Permalink
Slightly prettier error printing
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Feb 15, 2024
1 parent d712891 commit 46ae120
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ mod tag_omission;

#[tokio::main]
async fn main() -> io::Result<()> {
// This gives slightly prettier error-printing.
if let Err(e) = run().await {
eprintln!("{}", e);
std::process::exit(1);
}
Ok(())
}

async fn run() -> io::Result<()> {
// Since we're using Rc in the DOM implementation, we must ensure that tasks
// which act on it are confined to this thread.

Expand Down

0 comments on commit 46ae120

Please sign in to comment.