소스 검색

Add POD note about the argument array being passed to error_handler

George S. Baugh 7 년 전
부모
커밋
dedeb67974
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      lib/Selenium/Remote/Driver.pm

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

@@ -419,9 +419,10 @@ already-instantiated driver:
     # (we will croak about the exception)
     $driver->clear_error_handler;
 
-Your error handler will receive two arguments: the first argument is
+Your error handler will receive three arguments: the first argument is
 the C<$driver> object itself, and the second argument is the exception
-message and stack trace in one multiline string.
+message and stack trace in one multiline string.  The final argument(s) are the
+argument array to the command just executed.
 
 B<N.B.>: If you set your own error handler, you are entirely
 responsible for handling webdriver exceptions, _including_ croaking