fix(error handling): Improved error handling. Thowing errors, not objects

This commit is contained in:
Chris Troutner
2026-02-04 12:54:40 -07:00
parent cb2a90fc93
commit 04e3346086
7 changed files with 158 additions and 75 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ describe('#Blockchain', () => {
await bchjs.Blockchain.getBlock(blockhash)
assert2.fail('Unexpected result')
} catch (err) {
assert2.include(err, 'Test Error')
assert2.include(err.message, 'Test Error')
}
})
})