diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-06-04 13:46:22 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-06-04 13:46:22 -0400 |
commit | 743b80882d79f9d9c27712fd26abbbca060587fc (patch) | |
tree | a33a2ba91c20bec5a6d59517d713c7bf52bdda14 /jstests | |
parent | 56b5ce222920e85f2d44b7635926c8009f5d68a0 (diff) | |
download | mongo-743b80882d79f9d9c27712fd26abbbca060587fc.tar.gz |
better error message
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/repair.js | 3 |
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 ) ); |