Ver código fonte

Show error when a determinate resource doesn't load

soyjavi 13 anos atrás
pai
commit
75b7971687
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/boot/Lungo.Boot.Resources.js

+ 2 - 1
src/boot/Lungo.Boot.Resources.js

@@ -62,7 +62,8 @@ Lungo.Boot.Resources = (function(lng, $$, undefined) {
             async: false,
             dataType: 'html',
             error: function() {
-                throw new Error(ERROR.LOADING_RESOURCE + url);
+                console.error(ERROR.LOADING_RESOURCE + url);
+                // throw new Error(ERROR.LOADING_RESOURCE + url);
             }
         });
     };