Skip to content

Commit

Permalink
chore: return response object on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
svedova committed Dec 30, 2022
1 parent dff12c5 commit 3a25781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/datastore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const makeRequest = <T>({

res.on("end", () => {
if (res.statusCode !== 200 && res.statusCode !== 201) {
return reject(`Response returned ${res.statusCode}: ${data}`);
return reject(res);
}

try {
Expand Down

0 comments on commit 3a25781

Please sign in to comment.