title: nodejs how to handle a function's error in trycatch
body: <p>I have a method that I want place inside a try catch. How would I change the syntax so it handles it correctly in a trycatch?</p>
  
  <pre><code>try{
      rekognition.detectFaces(params, function(err, data) {
  
      });
  }catch(e){
  
  }
  </code></pre>
  
  <p>Getting the error: <code>error expected to be handled</code></p>