Nick Schaefer
CCConvex Community
•Created by Nick Schaefer on 12/23/2024 in #support-community
Request for better Swift Error Handling
As I've been setting up my app in Swift, I've been encountering this error:
In this internal Convex code:
At first I discovered it was because I was naming my Convex mutation name with a dot instead of a colon
try await convex.mutation("~~items.create~~item:create", with: ["name": name])
. But now I'm experiencing the same error for another completely different reason. Wrapping the mutation/action in a do/try/catch does not catch this error either - it crashes the app every time. I may follow this up with my latest issue if I don't solve it soon, but I would appreciate some better error handling here if possible. Thanks 🙂8 replies