From 5ce5acc0f538b3e2095fc5dc1b384a3ad4724fe1 Mon Sep 17 00:00:00 2001 From: Titus Fortner Date: Thu, 5 Oct 2023 21:53:32 -0500 Subject: [PATCH] [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 --- java/src/org/openqa/selenium/devtools/CdpVersionFinder.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/src/org/openqa/selenium/devtools/CdpVersionFinder.java b/java/src/org/openqa/selenium/devtools/CdpVersionFinder.java index 110d776104fdd..b2494e640af94 100644 --- a/java/src/org/openqa/selenium/devtools/CdpVersionFinder.java +++ b/java/src/org/openqa/selenium/devtools/CdpVersionFinder.java @@ -146,8 +146,9 @@ private Optional 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()}); }