lukos / simsig_importer

.Net Desktop Application for converting Excel simplified timetables into Simsig timetables
GNU General Public License v3.0
3 stars 1 forks source link

Row number not shown on Train Types parse error #65

Closed JDeeth closed 1 year ago

JDeeth commented 1 year ago

https://github.com/lukos/simsig_importer/blob/33509e2eabc0ac12361f223f59f92789011726f8/SimsigImporterLibrary/SpreadsheetHelper.cs#L696

Running into an error when using LibreOffice to create .xlsx files. It presents =TRUE() and =FALSE() as 1 and 0, which breaks the spreadsheet parser. The error message is "Unable to parse the data on row {row}" and does not show the row number.

I think the fix is to add the $:

error($"Unable to parse the data on row {row} of the Train Types sheet");