summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_utils_extended.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell/shell_utils_extended.cpp')
-rw-r--r--src/mongo/shell/shell_utils_extended.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/shell/shell_utils_extended.cpp b/src/mongo/shell/shell_utils_extended.cpp
index 89ecb4ab095..141389f007d 100644
--- a/src/mongo/shell/shell_utils_extended.cpp
+++ b/src/mongo/shell/shell_utils_extended.cpp
@@ -502,7 +502,8 @@ BSONObj readDumpFile(const BSONObj& a, void*) {
uassertStatusOK(swObj);
const auto obj = swObj.getValue();
- uassertStatusOK(validateBSON(obj.objdata(), valid));
+ uassertStatusOKWithContext(validateBSON(obj.objdata(), valid),
+ str::stream() << " at offset " << cursor.debug_offset());
array.append(obj);
}