aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-01 17:44:50 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-01 17:44:50 -0600
commit093e58de2ffc8243e6ff929f50a2aaa6ef60848b (patch)
treebe2003c6fd8d774f9462f4c0bd2ddae2af92f238 /src/main.rs
parente1128fe55d91ca60086de45c911b4568d2eec9ee (diff)
downloadmakers-093e58de2ffc8243e6ff929f50a2aaa6ef60848b.tar.gz
makers-093e58de2ffc8243e6ff929f50a2aaa6ef60848b.zip
slightly fancier errors
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index d5a13b2..2948818 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -17,13 +17,14 @@
clippy::todo
)]
#![allow(clippy::non_ascii_literal)]
+#![allow(clippy::missing_docs_in_private_items)]
use std::env::current_dir;
use std::fs::metadata;
use std::io::stdin;
use std::path::PathBuf;
-use anyhow::bail;
+use eyre::{bail, Result};
mod args;
mod makefile;
@@ -31,7 +32,9 @@ mod makefile;
use args::Args;
use makefile::Makefile;
-fn main() -> anyhow::Result<()> {
+fn main() -> Result<()> {
+ jane_eyre::install()?;
+
let mut args = Args::from_env_and_args();
// If no makefile is specified, try some options.
if args.makefile.is_empty() {