Uploaded image for project: 'CommandBox'
  1. COMMANDBOX-914

Make exit code of native binary from run command available in the exception that is thrown

    Details

    • Type: New Feature
    • Status: Resolved (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.0
    • Component/s: None
    • Labels:
      None

      Description

      try {
      	command("run exit 123").run( echo=true )
      } catch ( any e ) {
      	// Works
      	print.line( 'Errored with ' & getSystemSetting( 'exitCode' ) );
      	// Doesn't work (yet)
      	print.line( 'Errored with ' & e.errorCode );
      }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bradwood Brad Wood
                Reporter:
                bradwood Brad Wood
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: