'Throw error Network error. Could not reach Snowflake

When using the wrong account & username & password is then want to throw an error but get Network Error in console only.

`

let connectionPool = snowflake.createPool(
          {
            account: connectorData.account_id,
            username: connectorData.username,
            password: connectorData.password,
            authenticator: connectorData.connector_provider_type,
          },
          {
            max: 10,
            min: 0
          }
        )

`using a connection pool.

How to throw errors of wrong credentials?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source