title: xcode 8 value of type 'Error' has no member 'userinfo'
body: <p>I just upgraded to Xcode 8 and am already getting errors which cause the build to fail. I'm very new to swift, please help.</p>
  
  <p><a href="https://i.stack.imgur.com/1nxUH.png"><img src="https://i.stack.imgur.com/1nxUH.png" alt="enter image description here"></a></p>
  
  <p>What should I change this to? Thanks</p>
  
  <p>UPDATE</p>
  
  <p>Apart from this error i also got the following:</p>
  
  <pre><code>PFUser.logInWithUsername(inBackground: usernameTextField.text!, password: passwordTextField.text!, block: { (user, error) -&gt; Void in
  
                      //self.activityIndicator.stopAnimating()
                      UIApplication.shared.endIgnoringInteractionEvents()
  
                      if user != nil {
  
                          self.launchDrawerMenu()
  
                      } else {
  
                          let convertedError = error! as NSError
  
                          //if let errorString = convertedError["error"] as? String {
                              errorMessage = errorString
                          }
                          self.displayAlert("Login failed", message: errorMessage)
  
                      }
                  })
  </code></pre>
  
  <p>for the // line I got "type NSError has no subscript members" error. I tried bridging it to NSError but it does not work this time. What should i do? thanks a lot</p>