add retry if timeout error for clickhouse

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-07-18 21:16:07 +02:00
parent 7a0190c186
commit 9ee8626f96
2 changed files with 7 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ const getError = (e: unknown) => {
'Name: ' + e.name,
'Message: ' + e.message,
'Stack: ' + e.stack,
'Cause: ' + e.cause,
'Cause: ' + (e.cause ? String(e.cause) : ''),
].join('\n');
}
return 'Unknown error';