mirror of
https://github.com/moparisthebest/mailcatcher
synced 2024-12-22 07:18:53 -05:00
Tidy up exit behaviour
This commit is contained in:
parent
8913812b92
commit
a6c8f680c4
@ -98,7 +98,7 @@ module MailCatcher extend self
|
||||
puts "You'll need to install growlnotify from the Growl installer."
|
||||
puts
|
||||
puts "See: http://growl.info/extras.php#growlnotify"
|
||||
exit!
|
||||
exit -2
|
||||
end
|
||||
|
||||
options[:growl] = growl
|
||||
@ -123,7 +123,7 @@ module MailCatcher extend self
|
||||
|
||||
parser.on('-h', '--help', 'Display this help information') do
|
||||
puts parser
|
||||
exit!
|
||||
exit
|
||||
end
|
||||
end.parse!
|
||||
end
|
||||
@ -194,7 +194,7 @@ protected
|
||||
rescue RuntimeError
|
||||
if $!.to_s =~ /\bno acceptor\b/
|
||||
puts "~~> ERROR: Something's using port #{port}. Are you already running MailCatcher?"
|
||||
exit(-1)
|
||||
exit -1
|
||||
else
|
||||
raise
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user