diff options
Diffstat (limited to 'db/lasterror.h')
-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; } |