Skip to content

Commit

Permalink
Corrected string formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
mosbat committed Oct 4, 2024
1 parent 303a655 commit 52faeeb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ public void printProperties() {
String resolved = environment.getProperty(name);

if (resolved == null) {
fail("resolved property named {0} was expecting a string but is null.", name);
fail("resolved property named {%s} was expecting a string but is null.", name);
return;
}

Object sourceProperty = source.getProperty(name);

if (sourceProperty == null || sourceProperty.toString() == null) {
fail("source property named {0} was expecting a string value but is null.", name);
fail("source property named {%s} was expecting a string but is null.", name);
return;
}

Expand Down

0 comments on commit 52faeeb

Please sign in to comment.