Skip to content

Commit

Permalink
CB-5609. Refactor after review
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisSinelnikov committed Dec 26, 2024
1 parent aa5bb16 commit f778e31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public void validateFilename(@NotNull String filename) throws DBWebException {
Matcher matcher = FORBIDDEN_FILENAME_PATTERN.matcher(filename);

if (matcher.find()) {
throw new DBWebException("File includes forbidden symbols: " + filename);
throw new DBWebException(String.format("File %s contains forbidden symbols", filename));
}
}
}

0 comments on commit f778e31

Please sign in to comment.