mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-23 17:41:28 +01:00
made exitValue check more robust to cover possible future negative exit values
This commit is contained in:
@@ -286,7 +286,7 @@ public class RubyBundleAuditAnalyzer extends AbstractFileTypeAnalyzer {
|
|||||||
} catch (InterruptedException ie) {
|
} catch (InterruptedException ie) {
|
||||||
throw new AnalysisException("bundle-audit process interrupted", ie);
|
throw new AnalysisException("bundle-audit process interrupted", ie);
|
||||||
}
|
}
|
||||||
if (exitValue > 1) {
|
if (exitValue < 0 || exitValue > 1) {
|
||||||
final String msg = String.format("Unexpected exit code from bundle-audit process; exit code: %s", exitValue);
|
final String msg = String.format("Unexpected exit code from bundle-audit process; exit code: %s", exitValue);
|
||||||
throw new AnalysisException(msg);
|
throw new AnalysisException(msg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user