title: How to catch for client.connect() in node-postgres?
body: <p>try/catch does not work for client.connect():</p>
  
  <pre><code>const { Pool, Client } = require('pg')
  try {
    const client = new Client(config)
    client.connect()
  } catch (er) {
    console.log('error')
  }
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>UnhandledPromiseRejectionWarning: error: password authentication failed for user '...'
  </code></pre>
  
  <p>How can I change the async <code>connect()</code> to sync for try/catch?</p>