From 11de77f63f2f9f555977aac3e918e8e546a4c03b Mon Sep 17 00:00:00 2001
From: Corey Hulen <corey@hulen.com>
Date: Mon, 14 Nov 2016 05:39:48 -0800
Subject: Adding debugging for body errors (#4542)

---
 webapp/client/web_client.jsx | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'webapp/client/web_client.jsx')

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);
         });
     }
-- 
cgit v1.2.3-1-g7c22

