[SERVER-13930] Confusing message with hardcoded operator name on empty $set Created: 13/May/14 Updated: 04/Sep/14 Resolved: 15/May/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Usability |
| Affects Version/s: | 2.6.0, 2.6.1 |
| Fix Version/s: | 2.7.1 |
| Type: | Improvement | Priority: | Trivial - P5 |
| Reporter: | Valeri Karpov | Assignee: | Matt Kangas |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Sprint: | Server 2.7.1 |
| Participants: |
| Description |
|
> db.test.update({}, { $set : {} }); Ideally should output "'$set' is empty. You must specify a field like so: {$set: {<field>: ...}}" instead. |
| Comments |
| Comment by Githook User [ 15/May/14 ] | ||||||||||
|
Author: {u'username': u'vkarpov15', u'name': u'Valeri Karpov', u'email': u'valeri.karpov@10gen.com'}Message: Signed-off-by: Benety Goh <benety@mongodb.com> | ||||||||||
| Comment by Benety Goh [ 15/May/14 ] | ||||||||||
|
new error message:
| ||||||||||
| Comment by Benety Goh [ 15/May/14 ] | ||||||||||
|
existing test case:
|