Commit 801760aac7238ff8ec124147db6a08c4e8dffd76

Authored by nbm
1 parent df3b0b13

Give more information about which file was a problem in the logging.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4922 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 2 additions and 2 deletions
lib/Log.inc
... ... @@ -76,11 +76,11 @@ class KTLegacyLog {
76 76 if (!file_exists($this->logFile)) {
77 77 $res = @touch($this->logFile);
78 78 if ($res === false) {
79   - return new PEAR_Error('Failed to create log file (check permissions)');
  79 + return new PEAR_Error('Failed to create log file ' . $this->logFile . ' (check permissions)');
80 80 }
81 81 }
82 82 if (!is_writable($this->logFile)) {
83   - return new PEAR_Error('Cannot write to log file (check permissions)');
  83 + return new PEAR_Error('Cannot write to log file ' . $this->logFile . ' (check permissions)');
84 84 }
85 85 }
86 86  
... ...