invokeFailure-fix-for-run-proc.diff
src/com/goldencode/p2j/util/ControlFlowOps.java 2023-05-02 10:41:05 +0000 | ||
---|---|---|
8108 | 8108 |
private static void invokeFailure(String target) |
8109 | 8109 |
throws StopConditionException |
8110 | 8110 |
{ |
8111 |
int errCode = 293; |
|
8111 | 8112 |
String spec = "\"%s\" was not found"; |
8112 |
String err = String.format(spec, target); |
|
8113 |
err = ErrorManager.buildErrorText(293, err, true); |
|
8113 |
String errMsg = String.format(spec, target); |
|
8114 |
String err = ErrorManager.buildErrorText(errCode, errMsg, true); |
|
8115 | ||
8116 |
// RUN external.p should never be a silent error |
|
8117 |
ErrorManager.setSilent(false); |
|
8118 |
ErrorManager.addError(errCode, errMsg, false, true); |
|
8119 |
//ErrorManager.setSilent(true); |
|
8114 | 8120 |
|
8115 | 8121 |
ErrorManager.displayError(err); |
8116 |
throw new StopConditionException(err, new NumberedException(err, 293));
|
|
8122 |
throw new StopConditionException(err, new NumberedException(err, errCode));
|
|
8117 | 8123 |
} |
8118 | 8124 |
|
8119 | 8125 |
/** |