We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad6be66 commit 08f260eCopy full SHA for 08f260e
lib/Requestable.js
@@ -283,7 +283,9 @@ function getNextPage(linksHeader = '') {
283
284
function callbackErrorOrThrow(cb, path) {
285
return function handler(response) {
286
- let message = `error making request ${response.config.method} ${response.config.url}`;
+ let message = (`${response.status} error making request ` +
287
+ `${response.config.method} ${response.config.url}: ` +
288
+ `"${response.statusText}"`);
289
let error = new ResponseError(message, path, response);
290
log(`${message} ${JSON.stringify(response.data)}`);
291
if (cb) {
0 commit comments