Skip to content

Commit

Permalink
mention filename in exception
Browse files Browse the repository at this point in the history
  • Loading branch information
cweiske committed Jan 15, 2012
1 parent 5808a27 commit d782eba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Text/LanguageDetect.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,12 @@ function _readdb($fname)
// input check
if (!file_exists($fname)) {
throw new Text_LanguageDetect_Exception(
'Language database does not exist.',
'Language database does not exist: ' . $fname,
Text_LanguageDetect_Exception::DB_NOT_FOUND
);
} elseif (!is_readable($fname)) {
throw new Text_LanguageDetect_Exception(
'Language database is not readable.',
'Language database is not readable:' . $fname,
Text_LanguageDetect_Exception::DB_NOT_READABLE
);
}
Expand Down

0 comments on commit d782eba

Please sign in to comment.