Skip to content

Commit 069bdae

Browse files
committed
do not override the connection error type
1 parent 430068f commit 069bdae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rb/lib/selenium/webdriver/common/websocket_connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def send_cmd(**payload)
9898
begin
9999
socket.write(out_frame.to_s)
100100
rescue *CONNECTION_ERRORS => e
101-
raise Error::WebDriverError, "WebSocket is closed (#{e.class}: #{e.message})"
101+
raise e, "WebSocket is closed (#{e.class}: #{e.message})"
102102
end
103103

104104
wait.until do

0 commit comments

Comments
 (0)