Skip to content

Commit b7d99e7

Browse files
committed
Merge pull request #232
2 parents 19b9884 + e55bb19 commit b7d99e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

php_phongo.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ void phongo_throw_exception(php_phongo_error_domain_t domain TSRMLS_DC, const ch
110110
# endif
111111
#endif
112112
;
113+
void phongo_throw_exception_from_bson_error_t(bson_error_t *error TSRMLS_DC);
113114

114115
PHONGO_API zend_object_handlers *phongo_get_std_object_handlers(void);
115116

src/MongoDB/Manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ PHP_METHOD(Manager, selectServer)
289289
return;
290290
}
291291

292-
phongo_throw_exception(PHONGO_ERROR_RUNTIME TSRMLS_CC, "%s", error.message);
292+
phongo_throw_exception_from_bson_error_t(&error TSRMLS_CC);
293293
}
294294
}
295295
/* }}} */

0 commit comments

Comments
 (0)