Changeset 170 for trunk

Show
Ignore:
Timestamp:
07/17/08 15:38:38 (6 months ago)
Author:
iteman
Message:

- Removed unwanted "ERROR: " prefix from some exception messages.

Files:
1 modified

Legend:

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

    r167 r170  
    202202                 ) { 
    203203            if (!is_dir($directory)) { 
    204                 throw new Stagehand_TestRunner_Exception("ERROR: A specified path [ $directory ] is not found or not a directory."); 
     204                throw new Stagehand_TestRunner_Exception("A specified path [ $directory ] is not found or not a directory."); 
    205205            } 
    206206 
    207207            $directory = realpath($directory); 
    208208            if ($directory === false) { 
    209                 throw new Stagehand_TestRunner_Exception("ERROR: Cannnot get the absolute path of a specified directory [ $directory ]. Make sure all elements of the absolute path have valid permissions."); 
     209                throw new Stagehand_TestRunner_Exception("Cannnot get the absolute path of a specified directory [ $directory ]. Make sure all elements of the absolute path have valid permissions."); 
    210210            } 
    211211 
     
    282282        PEAR::staticPopErrorHandling(); 
    283283        if (PEAR::isError($argv)) { 
    284             throw new Stagehand_TestRunner_Exception('ERROR: ' . preg_replace('/^Console_Getopt: /', '', $argv->getMessage())); 
     284            throw new Stagehand_TestRunner_Exception(preg_replace('/^Console_Getopt: /', '', $argv->getMessage())); 
    285285        } 
    286286 
     
    293293        PEAR::staticPopErrorHandling(); 
    294294        if (PEAR::isError($allOptions)) { 
    295             throw new Stagehand_TestRunner_Exception('ERROR: ' . preg_replace('/^Console_Getopt: /', '', $allOptions->getMessage())); 
     295            throw new Stagehand_TestRunner_Exception(preg_replace('/^Console_Getopt: /', '', $allOptions->getMessage())); 
    296296        } 
    297297