Changeset 90

Show
Ignore:
Timestamp:
01/17/07 23:44:48 (2 years ago)
Author:
mikey
Message:

bugfix: no help screen show if no ini file found

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/experiments/people/mikey/star/StarConsole.php

    r86 r90  
    118118        if ($this->args->isDefined('ini') == false) { 
    119119            if (file_exists('./compile.ini') == false) { 
    120                 throw new StarException('Can not compile: no ini set and no default compile.ini found.'); 
     120                throw new StarException('Can not compile: no ini set and no default compile.ini found.', CONSOLE_GETARGS_ERROR_USER); 
    121121            } 
    122122             
     
    124124        } else { 
    125125            if (file_exists($this->args->getValue('ini')) == false) { 
    126                 throw new StarException('Can not compile: ' . $this->args->getValue('ini') . ' not found.'); 
     126                throw new StarException('Can not compile: ' . $this->args->getValue('ini') . ' not found.', CONSOLE_GETARGS_ERROR_USER); 
    127127            } 
    128128