Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ private void addDependencies(
}

} catch (IOException | InterruptedException e) {
log.severe("Unexpected error during " + analysisType + " analysis: " + e.getMessage());
throw new RuntimeException(
"Failed during " + analysisType + " analysis: " + e.getMessage(), e);
}
}

Expand Down Expand Up @@ -438,7 +439,10 @@ private CargoMetadata executeCargoMetadata() throws IOException, InterruptedExce
process.destroyForcibly();
outputFuture.cancel(true);
errorFuture.cancel(true);
throw new InterruptedException("cargo metadata timed out after " + TIMEOUT + " seconds");
throw new InterruptedException(
"cargo metadata timed out after "
+ TIMEOUT
+ " seconds. Adjust with -Dtrustify.cargo.timeout.seconds=N");
}

try {
Expand Down
Loading