Skip to content

Commit 10d0287

Browse files
committed
Use color-eyre for error reporting
1 parent 6aff395 commit 10d0287

File tree

3 files changed

+141
-3
lines changed

3 files changed

+141
-3
lines changed

Cargo.lock

Lines changed: 138 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ name = "blog"
99
path = "src/blog.rs"
1010

1111
[dependencies]
12+
color-eyre = "0.6.2"
1213
eyre = "0.6.8"
1314
handlebars = { version = "3", features = ["dir_source"] }
1415
lazy_static = "1.4.0"

src/blog.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
mod lib;
33

44
pub fn main() -> eyre::Result<()> {
5+
color_eyre::install()?;
6+
57
lib::main()?;
68

79
println!("blog has been generated; you can now serve its content by running\n\

0 commit comments

Comments
 (0)