Changeset 125

Show
Ignore:
Timestamp:
03/02/08 20:30:43 (10 months ago)
Author:
iteman
Message:

- Improved error handling for autotest.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/Stagehand/TestRunner.php

    r123 r125  
    162162            $runner->run($suite, $color); 
    163163        } else { 
     164            if (!is_dir($directory)) { 
     165                echo "ERROR: The specified path [ $directory ] is not found or not a directory.\n"; 
     166                self::_displayUsage(); 
     167                return 1; 
     168            } 
     169 
    164170            $directory = realpath($directory); 
    165             if ($directory === false || !is_dir($directory)) { 
    166                 echo "ERROR: The specified path [ $directory ] is not found or not a directory.\n"; 
     171            if ($directory === false) { 
     172                echo "ERROR: Cannnot get the absolute path of the specified directory [ $directory ]. Make sure all elements of the absolute path have valid permissions."; 
    167173                self::_displayUsage(); 
    168174                return 1;