From fc58c9babfde872a7c876951064a890a4cf61aa0 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Tue, 11 May 2010 15:12:17 -0400 Subject: better index assert debugging --- db/pdfile.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/db/pdfile.cpp b/db/pdfile.cpp index e46ffb7ce6b..80ae649306e 100644 --- a/db/pdfile.cpp +++ b/db/pdfile.cpp @@ -904,10 +904,9 @@ namespace mongo { idx.head, dl, *changes[x].added[i], idxKey, /*dupsAllowed*/true, idx); } - catch (AssertionException&) { + catch (AssertionException& e) { ss << " exception update index "; - out() << " caught assertion update index " << idx.indexNamespace() << '\n'; - problem() << " caught assertion update index " << idx.indexNamespace() << endl; + problem() << " caught assertion update index " << idx.indexNamespace() << " " << e << endl; } } } -- cgit v1.2.1