[ditz-talk] [PATCH] Exit cleanly when interrupting config creation, init or reconfigure
William Morgan
wmorgan-ditz at masanjin.net
Fri Nov 7 12:05:07 EST 2008
Reformatted excerpts from Daniel Kalør's message of 2008-11-05:
> - Ditz::Config.create_interactively.save! $opts[:config_file]
> + begin
> + Ditz::Config.create_interactively.save! $opts[:config_file]
> + rescue Interrupt
> + puts
> + exit 1
> + end
Good idea. Can you refactor so that the begin/rescue stuff is a separate
method that we can just call, instead of duplicating it three times?
--
William <wmorgan-ditz at masanjin.net>
More information about the ditz-talk
mailing list