diff options
author | Waley Chen <waleycz@gmail.com> | 2016-08-08 17:30:46 -0400 |
---|---|---|
committer | Waley Chen <waleycz@gmail.com> | 2016-08-08 17:30:46 -0400 |
commit | 11394b9e5d77613ddc4e9abaaf5caa82c9128fa2 (patch) | |
tree | bf05473ffa1d2d2c41075d033c707798839546e7 /src/mongo/shell/bulk_api.js | |
parent | f800685a05002ada9388d1fdfd84046ec6dccf70 (diff) | |
download | mongo-11394b9e5d77613ddc4e9abaaf5caa82c9128fa2.tar.gz |
Revert "SERVER-19741 WriteError and WriteConcernError are not Error instances"
This reverts commit f800685a05002ada9388d1fdfd84046ec6dccf70.
Diffstat (limited to 'src/mongo/shell/bulk_api.js')
-rw-r--r-- | src/mongo/shell/bulk_api.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/shell/bulk_api.js b/src/mongo/shell/bulk_api.js index 51668604a80..2dfe15d65d2 100644 --- a/src/mongo/shell/bulk_api.js +++ b/src/mongo/shell/bulk_api.js @@ -469,9 +469,6 @@ var _bulk_api_module = (function() { }; }; - WriteError.prototype = new Error(); - WriteError.prototype.constructor = WriteError; - /** * Wraps a write concern error */ @@ -500,9 +497,6 @@ var _bulk_api_module = (function() { }; }; - WriteConcernError.prototype = new Error(); - WriteConcernError.prototype.constructor = WriteConcernError; - /** * Keeps the state of an unordered batch so we can rewrite the results * correctly after command execution |