File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 61
61
}
62
62
}).catch((error) => {
63
63
// TODO: add comments here.
64
+ //
65
+ // So, I'm not sure if the error is being thrown by `@octokit/request.js` or
66
+ // `@octokit/plugin-retry.js`. I suspect that the initial error is thrown by
67
+ // `request.js`, and is subsequently propagated by `plugin-retry.js`.
68
+ //
69
+ // Anyway, the docs for `request.js` say the following:
70
+ //
71
+ // > If an error occurs, the promise is rejected with an `error` object
72
+ //> containing 3 keys to help with debugging:
73
+ // >
74
+ // > - `error.status` The http response status code
75
+ // > - `error.request` The request options such as `method`, `url` and `data`
76
+ // > - `error.response` The http response object with `url`, `headers`, and `data`
77
+ //
78
+ // Source: https://github.com/octokit/request.js/blob/main/README.md#request
79
+ //
80
+ // So, inside this `.catch()`, we simply return that `error` object.
64
81
65
82
return error;
66
83
});
You can’t perform that action at this time.
0 commit comments