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

Create mechanism for setting exit codes in the tools

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc1
    • Affects Version/s: None
    • Component/s: All Tools
    • None

      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.

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

              Created:
              Updated:
              Resolved: