summaryrefslogtreecommitdiffstats
path: root/webapp/client/client.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/client/client.jsx')
-rw-r--r--webapp/client/client.jsx12
1 files changed, 11 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);
});
}