From e47355b6253b90b3eab17aeb6a76147433cac15d Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 10 Apr 2012 22:55:28 +0000 Subject: better err msg --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it.class b/it.class index 787d748..0aafcd4 100644 --- a/it.class +++ b/it.class @@ -353,7 +353,7 @@ static function match($pattern, $string, $p = null) if (preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR) it::error("Exceeded pcre.backtrack_limit of " . ini_get('pcre.backtrack_limit') . " bytes"); else if (preg_last_error() == PREG_BAD_UTF8_ERROR) - it::error("Input to it::match is not valid utf-8"); + it::error("Invalid utf-8 in it::match haystack: " . substr($string, 0, 500)); # UTF8SAFE $result = $p['all'] ? array() : null; } -- cgit v1.2.3