Skip to content

Commit c429805

Browse files
committed
Make that error message more meaningful for systems like my SuSE 7.0 with
an apparently broken magic file.
1 parent 9c5883b commit c429805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mime_magic/mime_magic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ static int parse(char *l, int lineno)
465465
m->offset = (int) strtol(l, &t, 0);
466466
if (l == t) {
467467
php_error(E_WARNING,
468-
MODNAME ": offset %s invalid", l);
468+
MODNAME ": (line %d) offset `%s' invalid", lineno, l);
469469
}
470470
l = t;
471471

0 commit comments

Comments
 (0)