Ver código fonte

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

Gives better error message on command setting error
George S. Baugh 5 anos atrás
pai
commit
94ea680078
1 arquivos alterados com 2 adições e 1 exclusões
  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 );
     }
     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";
     }
 }