Page MenuHomePhabricator

Add extra info to script parsing error to make debugging easier
ClosedPublic

Authored by jasonbcox on Apr 14 2018, 23:06.

Details

Summary

Parsing errors in /src/test/data/*.json files give unknown location(0): fatal error in "script_json_test": std::runtime_error: script parse error which is totally useless for debugging. Related to T312.

Test Plan

make check + make check with a line that doesn't parse (error message now prints the line's contents, making debugging easier)

Diff Detail

Repository
rABC Bitcoin ABC
Branch
scripterror
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 2320
Build 2777: Bitcoin ABC Buildbot (legacy)
Build 2776: arc lint + arc unit