Skip to content

Commit

Permalink
chore: meaningful TestIO error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jreimone committed Jul 10, 2023
1 parent 0ed47f1 commit 1e4373a
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 1e4373a

Please sign in to comment.