Improved error messaging for unknown Target kwargs.

Review Request #2443 - Created July 8, 2015 and submitted

Information
Garrett Malmquist
pants
gmalmquist/helpful-unexpected-kwargs
1773
a445b0d...
Reviewers
pants-reviews
jsirois, patricklaw, zundel
Instead of crashing with an unhelpful exception message about
__init__ receiving unexpected kwargs, print out what the kwargs
were (keys and values), and what the target type and address were.

Added test to tests/python/pants_test/base/test_target.py.

CI went green here: https://travis-ci.org/pantsbuild/pants/builds/70127047

John Sirois
Eric Ayers
John Sirois
Garrett Malmquist
Garrett Malmquist
Review request changed

Status: Closed (submitted)

Change Summary:

In commit 149ee5f07b15ba0eaeeae24f91348cf0f032b11d

Loading...