Page MenuHomePhabricator

[ecash-lib] Use `new Error` when throwing errors in `WriterBytes`
ClosedPublic

Authored by tobias_ruck on Sep 10 2024, 10:30.

Details

Summary

Currently we throw strings directly, and node refuses to give us a stack trace in this case and tells us to use Error instead, so we do that.

Test Plan

npm run test

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable