瀏覽代碼

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

Loading…
取消
儲存