Przeglądaj źródła

Sphinx now logs the error instead of throwing it

dev1
nikvaessen 9 lat temu
rodzic
commit
77ef75f167

+ 2
- 2
modules/transcription/transcriptionServices/SphinxTranscriptionService.js Wyświetl plik

@@ -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
 }

Ładowanie…
Anuluj
Zapisz