Explorar el Código

log the error

Raanan Weber hace 5 años
padre
commit
8bbb89a23f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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.';";