summaryrefslogtreecommitdiffstats
path: root/webapp/client/client.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-11-14 05:39:48 -0800
committerHarrison Healey <harrisonmhealey@gmail.com>2016-11-14 08:39:48 -0500
commit11de77f63f2f9f555977aac3e918e8e546a4c03b (patch)
treef346e8b1fcf90f64b68581ff0ff20875a86040c9 /webapp/client/client.jsx
parentb55ec6148caa93d54b660afe55408c643d217108 (diff)
downloadchat-11de77f63f2f9f555977aac3e918e8e546a4c03b.tar.gz
chat-11de77f63f2f9f555977aac3e918e8e546a4c03b.tar.bz2
chat-11de77f63f2f9f555977aac3e918e8e546a4c03b.zip
Adding debugging for body errors (#4542)
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);
});
}