Skip to content

Commit

Permalink
modify error message
Browse files Browse the repository at this point in the history
Signed-off-by: xinyual <[email protected]>
  • Loading branch information
xinyual committed Jan 31, 2024
1 parent a57a6a9 commit f096160
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ public void downloadAndSplit(
String hash = calculateFileHash(modelZipFile);
if (modelContentHash == null) {
log.error("Hash code need to be provided when register via url.");
throw (new IllegalArgumentException("Hash code need to be provided when register via url."));
throw (new IllegalArgumentException(
"Model content Hash code need to be provided when register via url. Please calculate sha 256 Hash code."
));
} else if (hash.equals(modelContentHash)) {
List<String> chunkFiles = splitFileIntoChunks(modelZipFile, modelPartsPath, CHUNK_SIZE);
Map<String, Object> result = new HashMap<>();
Expand Down

0 comments on commit f096160

Please sign in to comment.