[SERVER-14946] assert.soon should not print javascript code where possible Created: 18/Aug/14  Updated: 08/Sep/14  Resolved: 20/Aug/14

Status: Closed
Project: Core Server
Component/s: JavaScript, Shell
Affects Version/s: None
Fix Version/s: 2.7.6

Type: Improvement Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Matt Kangas
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

Currently the code/function and the message are included in a failure. This is overkill and only the message should be included since the stack-trace includes information about the code (location).



 Comments   
Comment by Githook User [ 20/Aug/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@mongodb.com'}

Message: SERVER-14946: assert.soon don't print code if possible
Branch: master
https://github.com/mongodb/mongo/commit/09a639ccacd8ead858beb34dad32b4348cf2d030

Comment by Scott Hernandez (Inactive) [ 18/Aug/14 ]

While this is used primarily in tests it also shows up to users via rs. and
sh. helpers
https://jira.mongodb.org/browse/SERVER-14946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=694420#comment-694420
]
This is overkill and only the message should be included since the
stack-trace includes information about the code (location).
administrators

Generated at Thu Feb 08 03:36:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.