From ff61cb160b2be922f8e91675d1f8135b71233ad3 Mon Sep 17 00:00:00 2001 From: Mathias Stearn Date: Tue, 4 Nov 2014 17:07:31 -0500 Subject: Define dassert in terms of invariant rather than fassert Gives better error messages on failures. --- src/mongo/util/assert_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/util/assert_util.h') diff --git a/src/mongo/util/assert_util.h b/src/mongo/util/assert_util.h index 7bc464ad981..572dc4ee1ba 100644 --- a/src/mongo/util/assert_util.h +++ b/src/mongo/util/assert_util.h @@ -276,7 +276,7 @@ namespace mongo { could be slow. */ #if defined(_DEBUG) -# define MONGO_dassert(x) fassert(16199, (x)) +# define MONGO_dassert(x) invariant(x) #else # define MONGO_dassert(x) #endif -- cgit v1.2.1