Improve GN value origins for error messages.
Sets the origin for a value when the value is dereferenced. Previously if you did foo = 6 deps = [ foo ] You would get the message: ERROR at //BUILD.gn:15:9: This is not a string. foo = 6 ^ Which in this case is pretty confusing since that's obviously the case, and you really want to know where it was dereferenced. With this patch the message is: ERROR at //BUILD.gn:21:5: This is not a string. foo, ^-- Instead I see a integer = 6 which is more actionable. R=ajwong@chromium.org Review URL: https://codereview.chromium.org/439513003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288131 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment