pantsbuild/pants — pull request #442 by ericzundel (2014-08-05 19:23:35+00:00)
Title: Updates error message when referencing the wrong path to a BUILD file

When you put a bad path in target you get the error:

Exception message: BUILD file does not exist at: /Users/zundel/Src/Pants/maven_src/resource_collision/example_b/src/main/java/com/pants/exampleb

This isn't much help if you don't know where the reference came from - you'll have to grep through all your BUILD files.

This updates the message to include the referencing target in the error:

Exception message: BUILD file does not exist at: /Users/zundel/Src/Pants/maven_src/resource_collision/example_b/src/main/java/com/pants/exampleb referenced from maven_src/resource_collision/example_a/src/main/java/com/pants/duplicatepaths/examplea:examplea