summaryrefslogtreecommitdiff
path: root/src/mongo/shell/bulk_api.js
diff options
context:
space:
mode:
authorAndreas Nilsson <andreas.nilsson@10gen.com>2014-03-10 14:09:29 -0400
committerAndreas Nilsson <andreas.nilsson@10gen.com>2014-03-11 12:06:28 -0400
commit1ae45d8a71fa3948cd167e5c555e89627e8486c9 (patch)
treecfb03f98e26532cb29422757faf811d5cfab3c0a /src/mongo/shell/bulk_api.js
parentf2b8b2dd800e89ce2fa0eb14e893c650734d6f24 (diff)
downloadmongo-1ae45d8a71fa3948cd167e5c555e89627e8486c9.tar.gz
SERVER-13063 Improved bulk API error message
Diffstat (limited to 'src/mongo/shell/bulk_api.js')
-rw-r--r--src/mongo/shell/bulk_api.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/bulk_api.js b/src/mongo/shell/bulk_api.js
index 2f381142b5b..70b34b6341d 100644
--- a/src/mongo/shell/bulk_api.js
+++ b/src/mongo/shell/bulk_api.js
@@ -903,7 +903,7 @@ var _bulk_api_module = (function() {
//
// Execute the batch
this.execute = function(_writeConcern) {
- if(executed) throw Error("operations cannot be re-executed");
+ if(executed) throw Error("A bulk operation cannot be re-executed");
// If writeConcern set, use it, else get from collection (which will inherit from db/mongo)
writeConcern = _writeConcern ? _writeConcern : coll.getWriteConcern();