Adding debugging for body errors (#4542)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
b55ec6148c
Коммит
11de77f63f
@@ -206,7 +206,12 @@ export default class Client {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (successCallback) {
|
if (successCallback) {
|
||||||
|
if (res.body) {
|
||||||
successCallback(res.body, res);
|
successCallback(res.body, res);
|
||||||
|
} else {
|
||||||
|
console.error('Missing response body for ' + methodName); // eslint-disable-line no-console
|
||||||
|
successCallback('', res);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1952,6 +1957,11 @@ export default class Client {
|
|||||||
if (err) {
|
if (err) {
|
||||||
return error(err);
|
return error(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!res.body) {
|
||||||
|
console.error('Missing response body for samlCertificateStatus'); // eslint-disable-line no-console
|
||||||
|
}
|
||||||
|
|
||||||
return success(res.body);
|
return success(res.body);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -92,6 +92,11 @@ class WebClientClass extends Client {
|
|||||||
if (err) {
|
if (err) {
|
||||||
return error(err);
|
return error(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!res.body) {
|
||||||
|
console.error('Missing response body for getYoutubeVideoInfo'); // eslint-disable-line no-console
|
||||||
|
}
|
||||||
|
|
||||||
return success(res.body);
|
return success(res.body);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user