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
Branch
ecash-lib-fix-throw-error
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30229
Build 59985: Build Diffecash-lib-tests · ecash-agora-integration-tests · ecash-lib-integration-tests
Build 59984: arc lint + arc unit