Skip to content

Commit

Permalink
feat: report the name of failing dependencies that cannot be sourced (F…
Browse files Browse the repository at this point in the history
…uelLabs#4715)

## Description
closes FuelLabs#4685.

Improves error message for packages failing to be sourced by reporting
failing package name. Especially useful debugging `forc-pkg` bugs.
  • Loading branch information
kayagokalp authored Jun 30, 2023
1 parent 0d45b89 commit 33fda5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forc-pkg/src/pkg.rs
Original file line number Diff line number Diff line change
@@ -1431,7 +1431,7 @@ fn fetch_deps(
let parent_manifest = &manifest_map[&parent_id];
let source =
Source::from_manifest_dep_patched(parent_manifest, name, &dep, member_manifests)
.context("Failed to source dependency")?;
.context(format!("Failed to source dependency: {dep_name}"))?;

// If we haven't yet fetched this dependency, fetch it, pin it and add it to the graph.
let dep_pkg = Pkg {

0 comments on commit 33fda5e

Please sign in to comment.