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
Lint
Lint Not Applicable
Unit
Tests Not Applicable