Skip to content

Crash - Statement.swift line 211 #1118

New issue

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

Open
amandalragone opened this issue Mar 16, 2022 · 1 comment
Open

Crash - Statement.swift line 211 #1118

amandalragone opened this issue Mar 16, 2022 · 1 comment

Comments

@amandalragone
Copy link

amandalragone commented Mar 16, 2022

After including SQLite in my project, I saw this crash:

SQLite/Statement.swift:211: Fatal error: 'try!' expression unexpectedly raised an error: disk I/O error (code: 10)

It looks like it's coming from here:

extension FailableIterator {
    public func next() -> Element? {
        // swiftlint:disable:next force_try
        try! failableNext()
    }
}

#1028 mentions a fix was merged last year, but it looks like the code is still the same. Would you please check on it?

Thanks very much!

@nathanfallet
Copy link
Collaborator

Please see #1075. It shows how you need to catch the error. Also, feel free to open a Pull Request to update the documentation to make it clearer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants