Selaa lähdekoodia

log the error

Raanan Weber 5 vuotta sitten
vanhempi
commit
8bbb89a23f
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      Playground/js/main.js

+ 1 - 0
Playground/js/main.js

@@ -106,6 +106,7 @@ var engine;
 try {
     engine = ${createEngineFunction}();
 } catch(e) {
+    console.log("the available createEngine function failed. Creating the default engine instead");
     engine = createDefaultEngine();
 }`;
                 code += "\r\nif (!engine) throw 'engine should not be null.';";