catch and report the error instead of throwing an exception
This commit is contained in:
+3
-2
@@ -4076,8 +4076,9 @@
|
|||||||
handleSearchContacts: function(query) {
|
handleSearchContacts: function(query) {
|
||||||
var fnd = Tinode.getFndTopic();
|
var fnd = Tinode.getFndTopic();
|
||||||
var instance = this;
|
var instance = this;
|
||||||
fnd.setMeta({desc: {private: query}}).then(function(ctrl) {
|
fnd.setMeta({desc: {private: query}})
|
||||||
fnd.getMeta(fnd.startMetaQuery().withSub().withLaterDesc().build());
|
.then(function(ctrl) {
|
||||||
|
return fnd.getMeta(fnd.startMetaQuery().withSub().withLaterDesc().build());
|
||||||
}).catch(function(err){
|
}).catch(function(err){
|
||||||
instance.handleError(err.message, "err");
|
instance.handleError(err.message, "err");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user