Skip to content

Commit 7a07021

Browse files
valadez-abelfacebook-github-bot
authored andcommitted
Improve error message when calling project() on a symlink (#907)
Summary: Details can be found at: #906 Improve error message when calling project() on a symlink. Pull Request resolved: #907 Reviewed By: scottcao Differential Revision: D73052154 fbshipit-source-id: d1096b698a99a9b60c8bc04c8f6c8a162f268594
1 parent 7063d10 commit 7a07021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/buck2_build_api/src/artifact_groups/calculation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ impl Key for EnsureProjectedArtifactKey {
396396

397397
let value = extract_artifact_value(&builder, &base_path.join(path), digest_config)
398398
.with_buck_error_context(|| {
399-
format!("The path `{path}` cannot be projected in the artifact `{base}`")
399+
format!("The path `{path}` cannot be projected in the artifact `{base}`. Are you calling project() on a symlink?")
400400
})?
401401
.with_buck_error_context(|| {
402402
format!("The path `{path}` does not exist in the artifact `{base}`")

0 commit comments

Comments
 (0)