refactor: refs #4452 Test

This commit is contained in:
Guillermo Bonet 2024-12-17 09:59:54 +01:00
parent 20fa8f504e
commit 7a1653717c
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}