Skip to content

Commit 5ce5acc

Browse files
titusfortnerdiemol
andauthored
[java] improve warning when CDP version not found (#12880)
* [java] improve warning when CDP version not found * Update java/src/org/openqa/selenium/devtools/CdpVersionFinder.java * fix linting issues --------- Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
1 parent cdd71e6 commit 5ce5acc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

java/src/org/openqa/selenium/devtools/CdpVersionFinder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ private Optional<CdpInfo> findNearestMatch(int version) {
146146
} else {
147147
LOG.log(
148148
Level.WARNING,
149-
"Unable to find an exact match for CDP version {0}, so returning the closest version"
150-
+ " found: {1}",
149+
"Unable to find an exact match for CDP version {0}, returning the closest version; "
150+
+ "found: {1}; "
151+
+ "Please update to a Selenium version that supports CDP version {0}",
151152
new Object[] {version, nearestMatch.getMajorVersion()});
152153
}
153154

0 commit comments

Comments
 (0)