log error synchronously so we get a trace when pinPads has no callback

pull/1/head
ansuz 7 years ago
parent 841e3af8da
commit 5c2b58e703

@ -811,6 +811,9 @@ define([
common.pinPads = function (pads, cb) {
if (!pinsReady()) { return void cb ('RPC_NOT_READY'); }
if (typeof(cb) !== 'function') {
console.error('expected a callback');
}
rpc.pin(pads, function (e, hash) {
if (e) { return void cb(e); }

Loading…
Cancel
Save