We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Querying in some table is time-consuming, I want to intentionally interrupt previous query with db.interrupt(), which works fine.
db.interrupt()
But got below error from previous query, how can I catch the error without crashing the application?
SQLite/Statement.swift:211: Fatal error: 'try!' expression unexpectedly raised an error: interrupted (code: 9)
Tried below code, but to no avail.
do { let sequences = try db.prepare(repos.select(key)) rows = Array(sequences.enumerated()) } catch { print(error) }
The text was updated successfully, but these errors were encountered:
Also happening to me when I call db.interrupt() Crashes in Statement.swift, on
extension FailableIterator { public func next() -> Element? { // swiftlint:disable:next force_try try! failableNext() } }
Sorry, something went wrong.
Closing as it is a duplicate of #1118. We're going to keep only one issue opened to track this problem.
No branches or pull requests
Querying in some table is time-consuming, I want to intentionally interrupt previous query with
db.interrupt()
, which works fine.But got below error from previous query, how can I catch the error without crashing the application?
Tried below code, but to no avail.
The text was updated successfully, but these errors were encountered: