aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1rtt_per.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-10-09 12:44:48 +0200
committerBjörn Gustavsson <[email protected]>2015-01-12 11:40:24 +0100
commit6b10f918a4445d990152e4a31f8fde5cc9c8906a (patch)
tree3c293050e1e3a368b5900e2601870e53cb190fdf /lib/asn1/src/asn1rtt_per.erl
parent369aebd67933c8f45cdd5feec360aace190ef019 (diff)
downloadotp-6b10f918a4445d990152e4a31f8fde5cc9c8906a.tar.gz
otp-6b10f918a4445d990152e4a31f8fde5cc9c8906a.tar.bz2
otp-6b10f918a4445d990152e4a31f8fde5cc9c8906a.zip
Provide more reliable location of errors
File names and line number information was not reliable available when producing error messages. Some items have embedded line number information, and sometimes the S#state.type and/or S#state.value could be used to retrieve the line number information. To make sure that we can always retrieve at least an approximate error location, store the top-level construct being checked in S#state.error_context. Example of top-level constructs: Seq ::= SEQUENCE {...} i INTEGER ::= 42 This is a short-term solution. In the long term, we would want the parser to include line number information in all items.
Diffstat (limited to 'lib/asn1/src/asn1rtt_per.erl')
0 files changed, 0 insertions, 0 deletions