From c6f17e8a89e623bcf390c89912d9ab0189b28c16 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Tue, 31 Mar 2015 18:51:35 +0200 Subject: [PATCH] catch error in promise --- lib/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/main.js b/lib/main.js index 350f530..d7562f8 100644 --- a/lib/main.js +++ b/lib/main.js @@ -92,5 +92,8 @@ function (config, moment, Router, L, GUI) { router.setData(d) router.start() }) + .catch(function (e) { + console.log(e) + }) } })