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

Create mechanism for setting exit codes in the tools

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0-rc1
    • Component/s: All Tools
    • Labels:
      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

            Assignee:
            mpobrien Michael O'Brien
            Reporter:
            kyle.erf Kyle Erf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: