Maybe you detected it in:
} catch {
print(error)
}
Try putting a breakpoint in print and see if that console output came from that print. Or put your own text in front of that error. If yes, that is The Way to detect that.
Topic:
App & System Services
SubTopic:
General
Tags: