Skip to content

Commit

Permalink
improved error message by including ketama_error() in it
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-lb committed Jan 17, 2014
1 parent 175733d commit 28d3ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php_ketama/ketama.c
Expand Up @@ -176,7 +176,7 @@ PHP_FUNCTION(ketama_roll)
{
ZEND_REGISTER_RESOURCE( return_value, c, le_ketama_continuum );
} else {
php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to create Ketama continuum");
php_error_docref(NULL TSRMLS_CC, E_ERROR, "unable to create Ketama continuum: %s", ketama_error());
}
}
/* }}} */
Expand Down

0 comments on commit 28d3ec1

Please sign in to comment.