Skip to content

Commit cb6198b

Browse files
committed
improve exception message
1 parent 16fe634 commit cb6198b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

php_git2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static inline void php_git2_create_index_entry(zval **object, git_index_entry *e
250250

251251
#define PHP_GIT2_EXCEPTION_CHECK(errorcode) \
252252
if (errorcode < 0) { \
253-
zend_throw_exception_ex(NULL, 0 TSRMLS_CC,"%s\n(error code %d)", git_lasterror(), errorcode); \
253+
zend_throw_exception_ex(NULL, 0 TSRMLS_CC,"%s\n(error code %d) at %s:%d", git_lasterror(), errorcode, __FILE__, __LINE__); \
254254
git_clearerror(); \
255255
return; \
256256
} \

0 commit comments

Comments
 (0)