Skip to content

Commit

Permalink
chore(build): friendly error msg when Cargo.toml is not found (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
4rgon4ut authored Aug 30, 2024
1 parent 89f4b04 commit f128f55
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/build/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ pub fn execute_build_program(
// Get the program metadata.
let program_metadata_file = program_dir.join("Cargo.toml");
let mut program_metadata_cmd = cargo_metadata::MetadataCommand::new();
let program_metadata =
program_metadata_cmd.manifest_path(program_metadata_file).exec().unwrap();
let program_metadata = program_metadata_cmd.manifest_path(program_metadata_file).exec()?;

// Get the command corresponding to Docker or local build.
let cmd = if args.docker {
Expand Down

0 comments on commit f128f55

Please sign in to comment.