浏览代码

Sphinx now logs the error instead of throwing it

dev1
nikvaessen 9 年前
父节点
当前提交
77ef75f167
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      modules/transcription/transcriptionServices/SphinxTranscriptionService.js

+ 2
- 2
modules/transcription/transcriptionServices/SphinxTranscriptionService.js 查看文件

114
     var message = "config does not contain an url to a " +
114
     var message = "config does not contain an url to a " +
115
     "Sphinx4 https server";
115
     "Sphinx4 https server";
116
     if(config.sphinxURL === undefined){
116
     if(config.sphinxURL === undefined){
117
-        throw new Error(message);
117
+        console.log(message);
118
     }
118
     }
119
     else {
119
     else {
120
         var toReturn = config.sphinxURL;
120
         var toReturn = config.sphinxURL;
122
             return toReturn;
122
             return toReturn;
123
         }
123
         }
124
         else{
124
         else{
125
-            throw new Error(message);
125
+            console.log(message);
126
         }
126
         }
127
     }
127
     }
128
 }
128
 }

正在加载...
取消
保存