Error handling in Swift async/throws: During my error handling, I always face print(“DEBUG: Unknown error occurred: …”)
everyone. I am new to Swift, and trying to handle custom errors in my project. Unfortunately, during errors I always encounter print(“DEBUG: Unknown error occurred: …”). For example, if error is ‘invalidURL’ I have ‘DEBUG: Unknown error occurred: A server with the specified hostname could not be found.’ and so on.