Skip to content

Commit

Permalink
💫 Improve error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixr-codes committed May 1, 2024
1 parent bbd059e commit 5498fed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ pub fn run(matches: &ArgMatches) -> ExitCode {
.then(|| true)
.or(matches.get_flag("build-release").then(|| false));
let now = Instant::now();
let mut project = Project::current().unwrap();
let mut project = match Project::current() {
Ok(p) => p,
Err(e) => {
log::error!("{}", e);
return ExitCode::FAILURE;
}
};
if let Some(debug_mode) = debug_mode {
project.config.debug = debug_mode;
}
Expand Down

0 comments on commit 5498fed

Please sign in to comment.