We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line 59,
If xmlParser.lineNumber is 0 this will throw
xmlParser.lineNumber
for i in 0..<xmlParser.lineNumber - 1 { errorPosition += lines[i].count }
Fix locally with
let rangeMax = max(xmlParser.lineNumber - 1, 0) for i in 0..<rangeMax {
Not sure if this logic if correct though, instead of throwing or skipping the for loop.
The text was updated successfully, but these errors were encountered:
Thank you for reporting this @JoeMatt. This is fixed in #84.
Sorry, something went wrong.
Improve tests and fix error context handling (#84)
85a4e01
Fixes #83 * Improve tests and fix error context handling * Rename test to testErrorContextFirstLine
No branches or pull requests
Line 59,
If
xmlParser.lineNumber
is 0 this will throwFix locally with
Not sure if this logic if correct though, instead of throwing or skipping the for loop.
The text was updated successfully, but these errors were encountered: