Thanks to visit codestin.com Credit goes to github.com
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 103145eCopy full SHA for 103145e
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