Skip to content

Commit

Permalink
oh for the love of
Browse files Browse the repository at this point in the history
  • Loading branch information
auroraeosrose committed Nov 6, 2016
1 parent 7244fc8 commit d9322ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cairo_ft_font.c
Expand Up @@ -270,10 +270,8 @@ PHP_METHOD(CairoFtFontFace, __construct)

if (error) {
const char *err_string = php_cairo_get_ft_error(error TSRMLS_CC);
php_printf("our string is %s", err_string);
//zend_throw_exception_ex(cairo_ce_cairoexception, error, "CairoFtFontFace::__construct(): An error occurred opening the file %s", err_string TSRMLS_CC);
zend_throw_exception(cairo_ce_cairoexception, err_string, error TSRMLS_CC);
php_printf("after exception");

zend_throw_exception_ex(cairo_ce_cairoexception, error TSRMLS_CC, "CairoFtFontFace::__construct(): An error occurred opening the file %s", err_string);
pefree(ft_container, 1);
RETURN_NULL();
}
Expand Down

0 comments on commit d9322ba

Please sign in to comment.