Skip to content

Commit

Permalink
fixes networknt#1629 Make error message clear if serviceId is missing…
Browse files Browse the repository at this point in the history
… from the values.yml (networknt#1630)
  • Loading branch information
stevehu committed Feb 24, 2023
1 parent 0117978 commit ff364f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public void validate(String origin) {
if(source == null) {
if(path == null) {
problems.add("You must specify either path or source");
problems.add("It is possible that serviceId is missing from the values.yml and it is mandatory.");
} else if(method == null) {
problems.add("You must specify method along with path: " + path);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void validate_BadMethod() {
Assert.fail("Expected exception");
} catch (Exception e) {
System.out.println(e.toString());
String ex_message = "Bad paths element in unit test config [ You must specify either path or source ]";
String ex_message = "Bad paths element in unit test config [ You must specify either path or source | It is possible that serviceId is missing from the values.yml and it is mandatory. ]";
Assert.assertEquals(ex_message, e.getMessage());
}
}
Expand Down

0 comments on commit ff364f2

Please sign in to comment.