1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00

Even more verbosity...

This commit is contained in:
Wez Furlong
2004-08-03 12:41:26 +00:00
parent f765acea59
commit 4d39a171ee
+4 -1
View File
@@ -179,7 +179,10 @@ PHP_FUNCTION(com_dotnet_create_instance)
if (ret == FAILURE) {
char buf[1024];
sprintf(buf, "Failed to instantiate .Net object [%s]", where);
char *err = php_win_err(hr);
snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] %s", where, err);
if (err)
LocalFree(err);
php_com_throw_exception(hr, buf TSRMLS_CC);
ZVAL_NULL(object);
return;