Browse Source

Adds console.warn to callstats.reportError if the error parameter is null.

dev1
hristoterezov 9 years ago
parent
commit
d137c752f7
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      modules/statistics/CallStats.js

+ 1
- 0
modules/statistics/CallStats.js View File

@@ -303,6 +303,7 @@ function(overallFeedback, detailedFeedback) {
303 303
  */
304 304
 CallStats._reportError = function (type, e, pc) {
305 305
     if(!e) {
306
+        logger.warn("No error is passed!");
306 307
         e = new Error("Unknown error");
307 308
     }
308 309
     if (callStats) {

Loading…
Cancel
Save