mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-24 10:21:37 +01:00
Format GraphQL variables
This commit is contained in:
@@ -44,8 +44,9 @@ export function useIntrospectGraphQL(baseRequest: HttpRequest) {
|
||||
}
|
||||
|
||||
if (response.status < 200 || response.status >= 300) {
|
||||
const text = await getResponseBodyText(response);
|
||||
return Promise.reject(
|
||||
new Error(`Request failed with status ${response.status}.\n\n${response.body}`),
|
||||
new Error(`Request failed with status ${response.status}.\n\n${text}`),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user