Skip to content

Commit

Permalink
feat: error.response (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m authored Jun 12, 2021
1 parent 55827ab commit 7a99454
Show file tree
Hide file tree
Showing 3 changed files with 1,233 additions and 1,795 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ octokit.hook.after("request", async (response, options) => {
});
octokit.hook.error("request", async (error, options) => {
if (error.status === 304) {
return findInCache(error.headers.etag);
return findInCache(error.response.headers.etag);
}

throw error;
Expand Down
Loading

0 comments on commit 7a99454

Please sign in to comment.