Changeset 194

Show
Ignore:
Timestamp:
06/08/07 15:23:14 (1 year ago)
Author:
hans
Message:

Fixing undefined var notices from Filesystem::chmod()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/classes/phing/system/io/FileSystem.php

    r147 r194  
    411411        $str_mode = decoct($mode); // Show octal in messages.     
    412412        if (false === @chmod($pathname, $mode)) {// FAILED. 
    413             $msg = "FileSystem::chmod() FAILED. Cannot chmod $pathname. Mode $str_mode. $php_errormsg"
     413            $msg = "FileSystem::chmod() FAILED. Cannot chmod $pathname. Mode $str_mode." . (isset($php_errormsg) ? ' ' . $php_errormsg : "")
    414414            throw new Exception($msg); 
    415415        }