summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-05-11 15:12:17 -0400
committerEliot Horowitz <eliot@10gen.com>2010-05-11 15:12:49 -0400
commitfc58c9babfde872a7c876951064a890a4cf61aa0 (patch)
tree205cfac14ab8b587b76eb2cf54c93c8a1d37345f
parent8fa4644f25cb4416a84a40187151fc2b17abc979 (diff)
downloadmongo-fc58c9babfde872a7c876951064a890a4cf61aa0.tar.gz
better index assert debugging
-rw-r--r--db/pdfile.cpp5
1 files 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;
}
}
}