Adding debugging for body errors (#4542)

Этот коммит содержится в:
Corey Hulen
2016-11-14 05:39:48 -08:00
коммит произвёл Harrison Healey
родитель b55ec6148c
Коммит 11de77f63f
2 изменённых файлов: 16 добавлений и 1 удалений

Просмотреть файл

@@ -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);
}); });
} }