Skip to content

Commit

Permalink
Amend exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
MikielAgutu committed Dec 3, 2019
1 parent 5da7310 commit bebf466
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 @@ -435,7 +435,7 @@ public static Integer removeInteger(Map<String, String> config, String key) {
try {
return Integer.valueOf(value);
} catch (NumberFormatException e) {
throw new FlywayException("Invalid value for " + key + " (should be a positive integer): " + value,
throw new FlywayException("Invalid value for " + key + " (should be an integer): " + value,
ErrorCode.CONFIGURATION);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public int read() throws IOException {

if (placeholder.contains("flyway:")) {
throw new FlywayException("Failed to populate value for default placeholder: "
+ canonicalPlaceholder + ".");
+ canonicalPlaceholder);
}

throw new FlywayException("No value provided for placeholder: "
Expand Down

0 comments on commit bebf466

Please sign in to comment.