Skip to content

Commit 29ebdbf

Browse files
author
Danny Diekroeger
committed
fixed a quote issue that was preventing key.pub from showing up in error logs
1 parent f0c9d1c commit 29ebdbf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/admin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,20 +193,20 @@ const validateKey = function(key, type) {
193193
if (process.config.verificationPub) {
194194

195195
if (!key.signature) {
196-
console.log('Key ${key.pub} requires a signature and does not have one.');
196+
console.log(`Key ${key.pub} requires a signature and does not have one.`);
197197
return false;
198198
}
199199

200200
let validSig = false;
201201
try {
202202
validSig = bitcoinMessage.verify(key.pub, process.config.verificationPub, key.signature);
203203
} catch (err) {
204-
console.log('There was an error when verifying key ${key.pub}: ' + err.message);
204+
console.log(`There was an error when verifying key ${key.pub}: ` + err.message);
205205
return false;
206206
}
207207

208208
if (!validSig) {
209-
console.log('Invalid signature detected on key ${key.pub}');
209+
console.log(`Invalid signature detected on key ${key.pub}`);
210210
return false;
211211
}
212212
}

0 commit comments

Comments
 (0)