microsoft/hidtools

`usages` crashes Waratah

Closed this issue · 1 comments

This piece of TOML.:

            [[applicationCollection.inputReport.logicalCollection.arrayItem]]
            usages = ['Auxiliary Display', 'Stat Not Ready', 'Stat Ready', 'Err Not a loadable character']

gets past the parser, and then crashes with

Unable to cast object of type 'System.String' to type 'System.Object[]'.

This occurs on Waratah 1.3.0.0. Of course the above syntax is invalid, but ideally a better error message should be generated.

Great catch! I've fixed this in the most recent PR. A new build will be uploaded soon.