Skip to content

Commit

Permalink
Fixed a trivial unwrap-error bug
Browse files Browse the repository at this point in the history
When exporting a package, if the given package does not exist in the
specified channel (or default channel) we were unwrapping an error,
rather than properly returning it.

Signed-off-by: Abhijit Gadgil <[email protected]>
  • Loading branch information
agadgil-progress committed Aug 26, 2024
1 parent f6af4ba commit 88721b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/pkg-export-tar/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async fn export_for_cli_matches(ui: &mut UI, cli: &cli::Cli) -> Result<()> {

async fn export(ui: &mut UI, build_spec: BuildSpec<'_>) -> Result<()> {
let hab_pkg = build_spec.hab;
let build_result = build_spec.create(ui).await.unwrap();
let build_result = build_spec.create(ui).await?;
let builder_dir_path = build_result.0.path();
let pkg_ident = build_result.1;

Expand Down

0 comments on commit 88721b2

Please sign in to comment.