Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-204

Create mechanism for setting exit codes in the tools

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.8.0-rc1
    • None
    • All Tools
    • None

    Description

      In theory, we should be matching the exit codes for the different error exists in the C++ tools. We can't do this by just exiting in our code with os.Exit(x), since that will break defer statements. It would be nice if we had an error package that let us bubble up error messages with exit codes attached.

      Attachments

        Activity

          People

            mikeo@mongodb.com Michael O'Brien
            kyle.erf Kyle Erf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: