From: Chris Duncan Date: Wed, 15 Jan 2025 22:41:12 +0000 (-0800) Subject: Add data to error message. X-Git-Tag: v2.0.0~64 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=e346db5c9c884e56a19cdcdab6a37a0ad4ec074b;p=nano-pow.git Add data to error message. --- diff --git a/src/classes/gpu.ts b/src/classes/gpu.ts index f4eba87..3a69199 100644 --- a/src/classes/gpu.ts +++ b/src/classes/gpu.ts @@ -271,7 +271,7 @@ export class NanoPowGpu { const nonce = data.getBigUint64(0, true).toString(16).padStart(16, '0') const found = !!data.getUint32(8) this.#busy = false - if (found && work !== nonce) throw new Error(`Nonce found but does not match work`) + if (found && work !== nonce) throw new Error(`Nonce (${nonce}) found but does not match work (${work})`) return found } }