My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 38: use "raise" instead of "exit"
1 person starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  someword
Type-Defect
Priority-Medium
Milestone-Release-0.7


Sign in to add a comment
 
Reported by someword, Nov 26, 2007

  Apparently explicitly calling "exit" is not the right way to abort a
running ruby script.

  modify the script_clean method calls to include an error message like this

script_clean("exit","Error while trying to make #{WORKDIR}")
    

  and have the method something like

     # Everything is tidy have we been instructed to exit?
    if arg[0] == "exit"
      raise RuntimeError, arg[1] , "\n"
    end



 
Comment 1 by someword, Dec 21, 2007
(No comment was entered for this change.)
Labels: -Milestone-Release.6 Milestone-Release-0.6
Comment 2 by someword, Dec 27, 2007
(No comment was entered for this change.)
Labels: -Milestone-Release-0.6 Milestone-Release-0.7
Sign in to add a comment

Hosted by Google Code