add some more logging

This commit is contained in:
Sorunome 2020-04-23 11:40:35 +02:00
parent fe31f07830
commit 2610b20b2c
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C

View File

@ -195,6 +195,7 @@ export class Client extends EventEmitter {
} catch (err) {
// contact not found
log.debug("No such contact found");
log.debug(err.body || err);
this.contacts.set(fullId, null);
return null;
}
@ -226,6 +227,7 @@ export class Client extends EventEmitter {
} catch (err) {
// conversation not found
log.debug("No such conversation found");
log.debug(err.body || err);
this.conversations.set(id, null);
return null;
}