Return exit(1) if application-java fails

If application-java fails, return an exit(1) code,
so that callers such as Github Actions CI can detect the failure.

Signed-off-by: David Enyeart <enyeart@us.ibm.com>
This commit is contained in:
David Enyeart 2023-03-03 00:15:29 -05:00
parent 199e290f5e
commit b4f4ad914b

View file

@ -4,8 +4,8 @@
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
*/ */
// Running TestApp: // Running TestApp:
// gradle runApp // gradle runApp
package application.java; package application.java;
@ -110,6 +110,7 @@ public class App {
} }
catch(Exception e){ catch(Exception e){
System.err.println(e); System.err.println(e);
System.exit(1);
} }
} }