Skip to content

Commit

Permalink
Merge pull request #17 from Staffbase/meaningful-testio-errors
Browse files Browse the repository at this point in the history
chore: meaningful TestIO error message
  • Loading branch information
jreimone authored Jul 10, 2023
2 parents 0ed47f1 + 1e4373a commit a5e6501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class Util {
}
return Promise.reject("Deserializing the data from the response wasn't successful");
} else {
const error = new Error(response.statusText + " at endpoint: " + endpoint);
const error = new Error(response.statusText + " at endpoint: " + endpoint + "\n\n " + (await response.json()).error);
return Promise.reject(error)
}
}
Expand Down

0 comments on commit a5e6501

Please sign in to comment.