Skip to content

Commit 5973913

Browse files
authoredMar 13, 2025··
Merge branch 'main' into add-multi-organization-support
2 parents 75246e9 + 960947d commit 5973913

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎classes/ETL/Ingestor/StructuredFileIngestor.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -346,12 +346,12 @@ function ($k, $v) {
346346
}
347347

348348
$this->destinationHandle->commit();
349-
} catch (PDOException $e) {
349+
} catch (Exception $e) {
350+
$this->destinationHandle->rollback();
350351
$this->logAndThrowException(
351-
"Error committing transaction. Rolling back transactions.",
352+
"Error committing transaction. Rolling back transaction.",
352353
array('exception' => $e, 'endpoint' => $this)
353354
);
354-
$this->destinationHandle->rollback();
355355
}
356356

357357
foreach ( $warnings as $table => $message) {

0 commit comments

Comments
 (0)
Please sign in to comment.