BoxLang: Our new JVM Dynamic Language made by Ortus! Check it out: https://www.boxlang.io

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

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 ); }

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created November 23, 2018 at 11:17 PM
Updated November 23, 2018 at 11:18 PM
Resolved November 23, 2018 at 11:18 PM

Flag notifications