Skip to content

Instantly share code, notes, and snippets.

@cbowns
Created April 28, 2016 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbowns/d16dc0beb9cfcf6d3e019ddf06c3a8d5 to your computer and use it in GitHub Desktop.
Save cbowns/d16dc0beb9cfcf6d3e019ddf06c3a8d5 to your computer and use it in GitHub Desktop.
do {
try <#throwing method#>
} catch let error as NSError {
let errorString = "<#describe the error#>"
DDLogError("Error: \(errorString)")
DDLogError(error.debugDescription)
assert(false, errorString)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment