Open MacSplody opened 3 years ago
This would have to be done in libloot, as the bad_format_string
exception thrown has get_pos()
and get_next()
member functions, which are only useful in a context that also has the formatting string input. With them, we might be able to have errors like `format-string is ill-formed at "1%.", which is a little more useful.
At the moment incorrect usage of % will display the following error.
Working version:
Changes that will cause the error:
So if possible we should show where the error is happening.