summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'webapp')
-rw-r--r--webapp/client/client.jsx12
-rw-r--r--webapp/client/web_client.jsx5
2 files changed, 16 insertions, 1 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index a615bd501..3ce6977f6 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -206,7 +206,12 @@ export default class Client {
}
if (successCallback) {
- successCallback(res.body, res);
+ if (res.body) {
+ 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) {
return error(err);
}
+
+ if (!res.body) {
+ console.error('Missing response body for samlCertificateStatus'); // eslint-disable-line no-console
+ }
+
return success(res.body);
});
}
diff --git a/webapp/client/web_client.jsx b/webapp/client/web_client.jsx
index d6474f1d9..5d2696c37 100644
--- a/webapp/client/web_client.jsx
+++ b/webapp/client/web_client.jsx
@@ -92,6 +92,11 @@ class WebClientClass extends Client {
if (err) {
return error(err);
}
+
+ if (!res.body) {
+ console.error('Missing response body for getYoutubeVideoInfo'); // eslint-disable-line no-console
+ }
+
return success(res.body);
});
}