Skip to content

Commit

Permalink
Adapt error messages #66
Browse files Browse the repository at this point in the history
  • Loading branch information
ylvion committed Apr 6, 2022
1 parent d199391 commit 6a4a441
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public DaveVis createEmptyAnalysis() {
public DaveVis createAnalysis(String name, String query, String queryName, String graphDescription, String graphName) {
this.checkValidityOfInput(query, queryName, graphDescription, graphName);
if (this.visRepository.findByName(name).isPresent()) {
throw new AnalysisExceptions.ConfigurationConflict("Conflicting analysis objects. Please rename your analysis.");
throw new AnalysisExceptions.ConfigurationConflict("The chosen name is already used. Please rename your analysis.");
}
DaveVis created = new DaveVis(
name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public RedirectView createAnalysisFromFile(@RequestParam List<MultipartFile> ana
try {
return mapper.<JsonNode>readValue(input, JsonNode.class);
} catch (IOException e) {
throw new InputMismatchException("Could not read input file. Input was expected to be a List of analysis.");
throw new InputMismatchException("Could not read input file. Input was expected to be a List of analyses.");
}
})
.toList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public String executeVisualisationOfDashboard(DaveDashboard dashboard, String ac
visAndFiles.getSecond().getSecond().delete();
return visAndFiles.getFirst();
})
.orElseThrow(() -> new DashboardExceptions.InvalidConfiguration("Could not find dashboard visualisation for execution."));
.orElseThrow(() -> new DashboardExceptions.InvalidConfiguration("Could not find dashboard analyses for execution."));
}

/**
Expand Down

0 comments on commit 6a4a441

Please sign in to comment.