Explorar o código

catch error in promise

Nils Schneider %!s(int64=9) %!d(string=hai) anos
pai
achega
c6f17e8a89
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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)
+      })
   }
 })