By default Rake will stop at the first exception raised.
There doesn’t seem to be a command line equivalent to make -k, is there any way to do it programmaticaly?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunately there is no
--keep-goinginrake(and I think that’s fine). The only way I can think of is to wrap your Rakefile withbegin; rescue; end, but it won’t make it “keep going” — it will simply ensure that yourrake‘s execution return is0.I believe that “keep going” isn’t possible since when you
raisesomething you already changed your algorithm’s flow — i.e. don’t try to solve your problem by ignoring Exceptions.