Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28136

doassert() should ensure its Error object's message is one line

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • TIG 2017-03-06

    Description

      When an exception is thrown, the shell would print it in the following format:

      2017-02-16T23:02:31.486+0000 E QUERY    [thread1] Error: [some error message]
      

      The error message can span multiple lines, making parsing them difficult. It would be nice if doassert() could remove the newlines in the Error object before throwing it but after printing the message explicitly. This way there will still be a human readable multiline version of the message.

      Attachments

        Activity

          People

            robert.guo@mongodb.com Robert Guo (Inactive)
            robert.guo@mongodb.com Robert Guo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: