Browse Source

Merge pull request #391 from ylavoie/command-setting-warning

Gives better error message on command setting error
George S. Baugh 5 years ago
parent
commit
94ea680078
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/Selenium/Remote/Driver.pm

+ 2 - 1
lib/Selenium/Remote/Driver.pm

@@ -887,7 +887,8 @@ sub _execute_command {
         return $self->commands->parse_response( $res, $resp );
         return $self->commands->parse_response( $res, $resp );
     }
     }
     else {
     else {
-        croak "Couldn't retrieve command settings properly\n";
+        #Tell the use about the offending setting.
+        croak "Couldn't retrieve command settings properly ".$res->{command}."\n";
     }
     }
 }
 }