Skip to content

Commit

Permalink
[java] improve warning when CDP version not found (#12880)
Browse files Browse the repository at this point in the history
* [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 <[email protected]>
  • Loading branch information
titusfortner and diemol authored Oct 6, 2023
1 parent cdd71e6 commit 5ce5acc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions java/src/org/openqa/selenium/devtools/CdpVersionFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ private Optional<CdpInfo> findNearestMatch(int version) {
} else {
LOG.log(
Level.WARNING,
"Unable to find an exact match for CDP version {0}, so returning the closest version"
+ " found: {1}",
"Unable to find an exact match for CDP version {0}, returning the closest version; "
+ "found: {1}; "
+ "Please update to a Selenium version that supports CDP version {0}",
new Object[] {version, nearestMatch.getMajorVersion()});
}

Expand Down

0 comments on commit 5ce5acc

Please sign in to comment.