Return SQS error to prevoius state.

This commit is contained in:
Sam Rose 2024-09-26 15:50:49 +01:00
parent 26a27ff70f
commit ec6fa5f79b
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -495,6 +495,6 @@ export async function search(
if (err.status === 400 && msg?.match(MISSING_COLUMN_REGEX)) { if (err.status === 400 && msg?.match(MISSING_COLUMN_REGEX)) {
return { rows: [] } return { rows: [] }
} }
throw err throw new Error(`Unable to search by SQL - ${msg}`, { cause: err })
} }
} }