walletdb: handle errors for plugin.

This commit is contained in:
Christopher Jeffrey 2017-05-03 19:29:45 -07:00
parent 52bf0d420a
commit 377017ba3d
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -61,5 +61,9 @@ plugin.init = function init(node) {
wdb.rpc.attach(node.rpc);
wdb.on('error', function(err) {
wdb.logger.error(err);
});
return wdb;
};