summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-06-04 13:46:22 -0400
committerEliot Horowitz <eliot@10gen.com>2009-06-04 13:46:22 -0400
commit743b80882d79f9d9c27712fd26abbbca060587fc (patch)
treea33a2ba91c20bec5a6d59517d713c7bf52bdda14 /jstests
parent56b5ce222920e85f2d44b7635926c8009f5d68a0 (diff)
downloadmongo-743b80882d79f9d9c27712fd26abbbca060587fc.tar.gz
better error message
Diffstat (limited to 'jstests')
-rw-r--r--jstests/repair.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/repair.js b/jstests/repair.js
index 96944b86851..5548c2b7d45 100644
--- a/jstests/repair.js
+++ b/jstests/repair.js
@@ -2,4 +2,5 @@ t = db.jstests_repair;
t.drop();
t.save( { i:1 } );
db.repairDatabase();
-assert( t.validate().valid );
+v = t.validate();
+assert( v.valid , "not valid! " + tojson( v ) );