title: How can I print out Core Data save error in Swift
body: <p>How can I print out Core Data save error in Swift?</p>
  
  <p>As far as I have this two lines:</p>
  
  <pre><code>var error: AutoreleasingUnsafePointer&lt;NSError?&gt; = nil
  let success = managedObjectContext.save(error)
  </code></pre>