From 3acbccb289ff74d063c4809d8fc20235e99ea314 Mon Sep 17 00:00:00 2001 From: "sgk@chromium.org" Date: Tue, 20 Oct 2009 20:48:49 +0000 Subject: 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 --- webkit/build/rule_binding.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'webkit/build') 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:] -- cgit v1.1