Browse Source

catch error in promise

Nils Schneider 9 years ago
parent
commit
c6f17e8a89
1 changed files with 3 additions and 0 deletions
  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)
+      })
   }
 })