Skip to content

Commit

Permalink
fix: await error response, and as text
Browse files Browse the repository at this point in the history
Signed-off-by: AJ ONeal <[email protected]>
  • Loading branch information
AJ ONeal authored Mar 24, 2023
1 parent ba6bd8b commit 4b09fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashsight.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
`http request was ${resp.status}, not ok. See err.response for details.`,
);
// @ts-ignore
err.response = resp.json();
err.response = await resp.text();
throw err;
};

Expand Down

0 comments on commit 4b09fc1

Please sign in to comment.