Use new err serialization for unexpected errors

This commit is contained in:
Bryan Ashby 2016-07-16 13:06:15 -06:00
parent 2bd548d284
commit f6cc6f1388
1 changed files with 2 additions and 2 deletions

View File

@ -350,7 +350,7 @@ function BBSListModule(options) {
[ entry.id ],
err => {
if (err) {
self.client.log.error( { error : err.message }, 'Error deleting from BBS list');
self.client.log.error( { err : err }, 'Error deleting from BBS list');
} else {
self.entries.splice(self.selectedBBS, 1);
@ -384,7 +384,7 @@ function BBSListModule(options) {
[ formData.value.name, formData.value.sysop, formData.value.telnet, formData.value.www, formData.value.location, formData.value.software, self.client.user.userId, formData.value.notes ],
err => {
if(err) {
self.client.log.error( { error : err.message }, 'Error adding to BBS list');
self.client.log.error( { err : err }, 'Error adding to BBS list');
}
self.clearAddForm();