Skip to content

Commit

Permalink
docs: make Request.failure return string by default (#5289)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Feb 3, 2021
1 parent a8425d3 commit 6c44a78
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions docs/src/api/class-request.md
Expand Up @@ -17,8 +17,7 @@ If request gets a 'redirect' response, the request is successfully finished with
request is issued to a redirected url.

## method: Request.failure
- returns: <[null]|[Object]>
- `errorText` <[string]> Human-readable error message, e.g. `'net::ERR_FAILED'`.
- returns: <[null]|[string]>

The method returns `null` unless this request has failed, as reported by `requestfailed` event.

Expand Down
5 changes: 5 additions & 0 deletions docs/src/api/javascript.md
Expand Up @@ -2,6 +2,11 @@
* langs: js
- returns: <[null]|[Error]>

## method: Request.failure
* langs: js
- returns: <[null]|[Object]>
- `errorText` <[string]> Human-readable error message, e.g. `'net::ERR_FAILED'`.

### param: ElementHandle.evalOnSelector.expression = %%-js-evalonselector-pagefunction-%%
### param: ElementHandle.evalOnSelectorAll.expression = %%-js-evalonselectorall-pagefunction-%%
### param: Frame.evalOnSelector.expression = %%-js-evalonselector-pagefunction-%%
Expand Down
4 changes: 0 additions & 4 deletions docs/src/api/python.md
Expand Up @@ -81,10 +81,6 @@ Path to the JavaScript file. If `path` is a relative path, then it is resolved r

Raw script content.

## method: Request.failure
* langs: python
- returns: <[null]|[string]>

## async method: Page.waitForEvent
* langs: python
- returns: <[EventContextManager]>
Expand Down

0 comments on commit 6c44a78

Please sign in to comment.