| Author | DaveJarvis <email> |
|---|---|
| Date | 2021-05-11 20:32:39 GMT-0700 |
| Commit | b2f416f7fc5f1d1754e4b7ce8fdbf65b4cd86b4c |
| Parent | c4dde59 |
| Delta | 5 lines added, 5 lines removed |
| // Subclasses of RuntimeException must be subject to Englishification. | ||
| - if( problem.getClass().equals( RuntimeException.class ) && | ||
| - (problem = problem.getCause()) == null ) { | ||
| - return ""; | ||
| + if( problem.getClass().equals( RuntimeException.class ) ) { | ||
| + final var cause = problem.getCause(); | ||
| + return cause == null ? problem.getMessage() : cause.getMessage(); | ||
| } | ||
| */ | ||
| public static void clue( final Throwable problem ) { | ||
| - fireStatusEvent( "", problem ); | ||
| + fireStatusEvent( problem.getMessage(), problem ); | ||
| } | ||
| set SCRIPT_DIR=%~dp0 | ||
| -"%SCRIPT_DIR%\\${ARG_JAVA_DIR}\\bin\\java" ${OPT_JAVA} -jar "%SCRIPT_DIR%\\${APP_NAME}.jar" %* | ||
| +"%SCRIPT_DIR%\\${ARG_JAVA_DIR}\\bin\\java" ${OPT_JAVA} -jar "%SCRIPT_DIR%\\${APP_NAME}.jar" %* 2>nul | ||
| __EOT | ||