Skip to content

Commit 18e2e15

Browse files
committed
Fix exception class
1 parent 5a3767e commit 18e2e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phongo_execute.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ bool phongo_execute_bulk_write(zval* manager, const char* namespace, php_phongo_
310310
}
311311

312312
if (EG(exception)) {
313-
zend_throw_exception(phongo_exception_from_phongo_domain(error.domain), error.message, error.code);
313+
phongo_throw_exception_from_bson_error_t_and_reply(&error, &reply);
314314
} else {
315315
zend_throw_exception(php_phongo_bulkwriteexception_ce, error.message, error.code);
316316
}

0 commit comments

Comments
 (0)