Skip to content

Commit 46ae120

Browse files
committed
Slightly prettier error printing
1 parent d712891 commit 46ae120

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main.rs

+9
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ mod tag_omission;
2020

2121
#[tokio::main]
2222
async fn main() -> io::Result<()> {
23+
// This gives slightly prettier error-printing.
24+
if let Err(e) = run().await {
25+
eprintln!("{}", e);
26+
std::process::exit(1);
27+
}
28+
Ok(())
29+
}
30+
31+
async fn run() -> io::Result<()> {
2332
// Since we're using Rc in the DOM implementation, we must ensure that tasks
2433
// which act on it are confined to this thread.
2534

0 commit comments

Comments
 (0)