diff options
author | sgk@chromium.org <sgk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-20 20:48:49 +0000 |
---|---|---|
committer | sgk@chromium.org <sgk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-20 20:48:49 +0000 |
commit | 3acbccb289ff74d063c4809d8fc20235e99ea314 (patch) | |
tree | 320d7354d93a3bdec438317c383ee9559d40b5ad /webkit/build | |
parent | 94e4009246939616ec5ff850d560b13f638d58cb (diff) | |
download | chromium_src-3acbccb289ff74d063c4809d8fc20235e99ea314.zip chromium_src-3acbccb289ff74d063c4809d8fc20235e99ea314.tar.gz chromium_src-3acbccb289ff74d063c4809d8fc20235e99ea314.tar.bz2 |
When an assert fails, print the data that failed the assert
so the problem can be triaged.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/285005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29568 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/build')
-rwxr-xr-x | webkit/build/rule_binding.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/webkit/build/rule_binding.py b/webkit/build/rule_binding.py index 9555d4d..7c84155 100755 --- a/webkit/build/rule_binding.py +++ b/webkit/build/rule_binding.py @@ -51,15 +51,13 @@ def SplitArgsIntoSections(args): def main(args): sections = SplitArgsIntoSections(args[1:]) - assert len(sections) == 3 + assert len(sections) == 3, sections (base, inputs, options) = sections - assert len(base) == 3 - input = base[0] - cppdir = base[1] - hdir = base[2] + assert len(base) == 3, base + (input, cppdir, hdir) = base - assert len(inputs) > 1 + assert len(inputs) > 1, inputs generate_bindings = inputs[0] perl_modules = inputs[1:] |