Sfoglia il codice sorgente

catch error in promise

Nils Schneider 9 anni fa
parent
commit
c6f17e8a89
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      lib/main.js

+ 3 - 0
lib/main.js

@@ -92,5 +92,8 @@ function (config, moment, Router, L, GUI) {
         router.setData(d)
         router.start()
       })
+      .catch(function (e) {
+        console.log(e)
+      })
   }
 })