title: Handling Promise rejection with catch while using await
body: <p>I am using <code>await</code> to make the code cleaner, but I am not sure whether I am handling exceptions correctly.</p>
  <p>An example while using azure-devops-node-api;</p>
  <pre><code>const foo = async() =&gt; {
      return new Promise((resolve, reject) =&gt; {
          ...
          ...
          const teams = await coreApiObject.getTeams(currProject.id)
                        .catch(err =&gt; { reject(err)  return })
          ...
          ...
      })  
  }
  </code></pre>
  <p>In this code I am assuming, if there is a problem with promise call, foo() is going to return reject.</p>