Skip to content

Commit ed54635

Browse files
committed
#316: improve exception handling for validating response body file path
1 parent 818ae2e commit ed54635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/specto/hoverfly/junit/core/config/HoverflyConfigValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private Optional<String> getTestResourcesFolderPath(String relativePath) {
123123
private String toPath(URL url) {
124124
try {
125125
return Path.of(url.toURI()).toString();
126-
} catch (URISyntaxException e) {
126+
} catch (Exception e) {
127127
return null;
128128
}
129129
}

0 commit comments

Comments
 (0)