walletdb: handle errors for plugin.
This commit is contained in:
parent
52bf0d420a
commit
377017ba3d
@ -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;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user