query: change (debug-mode) field validation errors
authorIustin Pop <iustin@google.com>
Sun, 16 Jan 2011 16:22:37 +0000 (17:22 +0100)
committerIustin Pop <iustin@google.com>
Tue, 18 Jan 2011 15:55:51 +0000 (16:55 +0100)
commitd1c3c3b3f66a3b98c83bc88efc8d286895d9df79
treeabe7a100b5728ba7f3d06fdf4f0ae88bdda3ee25
parent0ca7e38495509e38f834669975278d1698a07746
query: change (debug-mode) field validation errors

Currently, the single assert just checks that the entire row is
consistent (true/false), and dumps the row and field definitions as an
accompanying message. This makes it very hard to understand what failed.

This patch changes this validation to show descriptive messages, which
makes it much faster in diagnosing invalid result.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/query.py