HomePhabricator

Add extra info to script parsing error to make debugging easier

Description

Add extra info to script parsing error to make debugging easier

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)

Reviewers: deadalnix, schancel, #bitcoin_abc

Reviewed By: deadalnix, #bitcoin_abc

Subscribers: teamcity

Differential Revision: https://reviews.bitcoinabc.org/D1289

Details

Provenance
jasonbcoxAuthored on Apr 16 2018, 17:36
jasonbcoxPushed on Apr 16 2018, 17:37
Reviewer
Restricted Project
Differential Revision
D1289: Add extra info to script parsing error to make debugging easier
Parents
rABCf66412ed9892: Fix several tests in script_tests.json
Branches
Unknown
Tags
Unknown