Skip to content

Commit

Permalink
fix: throw if there are errors (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasparGupta authored Oct 13, 2021
1 parent bab6990 commit 636da0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public function insert($params, $bindings = [])
Closure::fromCallable([$this->connection, 'bulk'])
);

if (empty($result['errors'])) {
if (!empty($result['errors'])) {
throw new BulkInsertQueryException($result);
}

Expand Down

0 comments on commit 636da0d

Please sign in to comment.