浏览代码

log the error

Raanan Weber 5 年之前
父节点
当前提交
8bbb89a23f
共有 1 个文件被更改,包括 1 次插入0 次删除
  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.';";