From ed11dd0d221750a94be91124b8911fd1b19e5707 Mon Sep 17 00:00:00 2001 From: or-else Date: Thu, 10 May 2018 17:08:44 -0700 Subject: [PATCH] catch and report the error instead of throwing an exception --- index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e931a98e..a8c0975c 100644 --- a/index.html +++ b/index.html @@ -4076,8 +4076,9 @@ handleSearchContacts: function(query) { var fnd = Tinode.getFndTopic(); var instance = this; - fnd.setMeta({desc: {private: query}}).then(function(ctrl) { - fnd.getMeta(fnd.startMetaQuery().withSub().withLaterDesc().build()); + fnd.setMeta({desc: {private: query}}) + .then(function(ctrl) { + return fnd.getMeta(fnd.startMetaQuery().withSub().withLaterDesc().build()); }).catch(function(err){ instance.handleError(err.message, "err"); });