Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7603fb

Browse files
committed
Fix waitUntilExists exception messages for invalid timeUnit values
1 parent 63e70f1 commit a7603fb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/javafxlibrary/utils/HelperFunctions.java

+2
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ public static Node waitUntilExists(String target, int timeout, String timeUnit)
9595
});
9696
waitForFxEvents();
9797
return node;
98+
} catch (JavaFXLibraryNonFatalException nfe) {
99+
throw nfe;
98100
} catch (TimeoutException te) {
99101
throw new JavaFXLibraryTimeoutException("Given element \"" + target + "\" was not found within given timeout of "
100102
+ timeout + " " + timeUnit);

0 commit comments

Comments
 (0)