diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-08-03 11:49:10 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-08-03 11:49:10 -0400 |
commit | 53f0ff18bbd45e18f9c377d0c954358eb8c9b05a (patch) | |
tree | 8ea5405debf9af4afc3849d387cf3b8750f8c8b9 | |
parent | c970eb624fde1691e3e48e926565003829ac527b (diff) | |
download | mongo-53f0ff18bbd45e18f9c377d0c954358eb8c9b05a.tar.gz |
debugging
-rw-r--r-- | db/lasterror.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/db/lasterror.h b/db/lasterror.h index 03ea6fcd4f4..5900208b6c7 100644 --- a/db/lasterror.h +++ b/db/lasterror.h @@ -102,7 +102,10 @@ namespace mongo { LastError * get( bool create = false ); LastError * getSafe(){ LastError * le = get(false); - assert( le ); + if ( ! le ){ + log( LL_ERROR ) << " no LastError! id: " << getID() << endl; + assert( le ); + } return le; } |