mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 04:52:59 +01:00
More useful error messages
This commit is contained in:
parent
11cde61eab
commit
a11165830b
@ -294,7 +294,7 @@ STATIC_INLINE SV* _execute_impl(SV* self, SV* data, UV off, size_t limit) {
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if(from >= limit) {
|
if(from >= limit) {
|
||||||
Perl_croak(aTHX_ "offset is bigger than data buffer size.");
|
Perl_croak(aTHX_ "offset (%lu) is bigger than data buffer size (%lu)", (unsigned long)off, (unsigned long)limit);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = template_execute(mp, dptr, limit, &from);
|
ret = template_execute(mp, dptr, limit, &from);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user