Skip to content

Commit

Permalink
Pull request #241: Code quality improvements
Browse files Browse the repository at this point in the history
Merge in ITB/shacl-validator from development to master

* commit 'fe3d038ff1531da6b6c0a07e3848fd5a2fae7fbc':
  Code quality improvements
  • Loading branch information
costas80 committed Jan 29, 2025
2 parents d604bb7 + fe3d038 commit c93a1c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private String getBaseReportNameForRdfReport(String type) {
* @param tmpFolder The temporary folder to use for generated files.
* @param localiser The localisation helper.
* @param domainConfig The domain configuration.
* @return The information reltated to the generated report.
* @return The information related to the generated report.
*/
private ReportFileInfo produceReport(String reportSyntax, File tmpFolder, LocalisationHelper localiser, DomainConfig domainConfig) {
String extension;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public UploadResult handleUpload(@PathVariable("domain") String domain,
result.setMessage(e.getMessageForDisplay(localisationHelper));
forceCleanup = true;
} catch (Exception e) {
logger.error("An error occurred during the validation [" + e.getMessage() + "]", e);
logger.error("An error occurred during the validation [{}]", e.getMessage(), e);
if (e.getMessage() != null) {
result.setMessage(localisationHelper.localise("validator.label.exception.unexpectedErrorDuringValidationWithParams", e.getMessage()));
} else {
Expand Down

0 comments on commit c93a1c3

Please sign in to comment.