Open
Description
An invalid FTS match query leads to a crash. E.g. trying to execute X.match("hello (something") gives:
fatal error: 'try!' expression unexpectedly raised an error: malformed MATCH expression: [hello (adsfasdf]: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-700.1.101.15/src/swift/stdlib/public/core/ErrorType.swift, line 50
Sample playground showing the behavior:
https://gist.github.com/CSchwang/937f9ae9fcbf8e6e0152
It would be nice to be able to handle the error instead of crashing