Skip to content

Commit

Permalink
fix: use correct status property in response
Browse files Browse the repository at this point in the history
  • Loading branch information
jankapunkt committed Aug 7, 2024
1 parent 8becebc commit 6a69257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/server.handleCoverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const request = async ({ url, message }) => {
throw new Error(`${message} ${error.message}`);
}

if (response?.statusCode !== 200) {
throw new Error(`${message} ${response?.statusCode} ${data}`);
if (response?.status !== 200) {
throw new Error(`${message} ${response?.status} ${data}`);
}

return data;
Expand Down

0 comments on commit 6a69257

Please sign in to comment.