From 8d8e386afe3988cdf70778934c7d88d7453a9112 Mon Sep 17 00:00:00 2001 From: tod222 <42418406+tod222@users.noreply.github.com> Date: Thu, 16 Aug 2018 13:24:30 -0400 Subject: [PATCH] Update RemoteConnection.pm Better error reporting when check_status gets NOTOK. --- lib/Selenium/Remote/RemoteConnection.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Selenium/Remote/RemoteConnection.pm b/lib/Selenium/Remote/RemoteConnection.pm index 2764c04c..bcbc20fa 100644 --- a/lib/Selenium/Remote/RemoteConnection.pm +++ b/lib/Selenium/Remote/RemoteConnection.pm @@ -99,7 +99,9 @@ sub check_status { } unless ($status->{cmd_status} eq 'OK') { - croak "Selenium server did not return proper status"; + warn $status->{cmd_return}; + my $stat = $status->{cmd_status}; + croak "Selenium server did not return proper status: [$stat]"; } }