Skip to content

Commit d782eba

Browse files
committed
mention filename in exception
git-svn-id: http://svn.php.net/repository/pear/packages/Text_LanguageDetect/trunk@322325 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent 5808a27 commit d782eba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Text/LanguageDetect.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,12 @@ function _readdb($fname)
237237
// input check
238238
if (!file_exists($fname)) {
239239
throw new Text_LanguageDetect_Exception(
240-
'Language database does not exist.',
240+
'Language database does not exist: ' . $fname,
241241
Text_LanguageDetect_Exception::DB_NOT_FOUND
242242
);
243243
} elseif (!is_readable($fname)) {
244244
throw new Text_LanguageDetect_Exception(
245-
'Language database is not readable.',
245+
'Language database is not readable:' . $fname,
246246
Text_LanguageDetect_Exception::DB_NOT_READABLE
247247
);
248248
}

0 commit comments

Comments
 (0)