ITDP / the-online-brt-planning-guide

Online collaborative version of the BRT Planning Guide
https://brtguide.itdp.org
Other
6 stars 20 forks source link

Improve parser error message for different number of columns in a table #173

Closed aszasz closed 7 years ago

aszasz commented 7 years ago

It currently it does not show which line(s) is (are) the offender(s) as bellow


=> Parsing
 --> [assert] row.length=11  // in table (Parser.hx:347)
 --> [assert] header.length=10  // in table (Parser.hx:347)
 --> [assert] rows.length=10  // in table (Parser.hx:347)
 --> [assert] begin.pos.toString()=guide/02-why-brt/22-costs.manu, line=112, columns=(1 to 11)  // in table (Parser.hx:347)
ERROR: Assertion failed: row.length == header.length
``