refactor: refs #4452 Test
This commit is contained in:
parent
20fa8f504e
commit
7a1653717c
|
@ -16,7 +16,7 @@ async function getConn(retries = Number(env.DB_CONN_ATTEMPTS), delay = Number(en
|
|||
} catch (error) {
|
||||
attempt++;
|
||||
if (attempt >= retries)
|
||||
throw new Error('Could not get connection');
|
||||
throw new Error(`Could not get connection: ${error}`);
|
||||
|
||||
await new Promise(resolve => setTimeout(resolve, delay));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue