|
|
@ -41,8 +41,6 @@ export const createAPIClient = config => { |
|
|
|
|
|
|
|
|
// Generates an error object from an API response
|
|
|
// Generates an error object from an API response
|
|
|
const makeErrorFromResponse = async (response, method) => { |
|
|
const makeErrorFromResponse = async (response, method) => { |
|
|
console.log("making error from", response) |
|
|
|
|
|
|
|
|
|
|
|
// Try to read a message from the error
|
|
|
// Try to read a message from the error
|
|
|
let message = response.statusText |
|
|
let message = response.statusText |
|
|
let json = null |
|
|
let json = null |
|
|
|