Skip to content

Commit 5bcfdce

Browse files
committed
Merge pull request #786
2 parents 0a745ee + 5d2f12b commit 5bcfdce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

php_phongo.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ zend_class_entry* phongo_exception_from_mongoc_domain(uint32_t /* mongoc_error_d
164164
return php_phongo_connectionexception_ce;
165165
}
166166

167+
if (domain == MONGOC_ERROR_WRITE_CONCERN) {
168+
return php_phongo_serverexception_ce;
169+
}
170+
167171
return php_phongo_runtimeexception_ce;
168172
}
169173
void phongo_throw_exception(php_phongo_error_domain_t domain TSRMLS_DC, const char* format, ...)

0 commit comments

Comments
 (0)