mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 10:55:30 -04:00
Stop the process when the server fails to start
This commit is contained in:
parent
952aa0c6ca
commit
377c4c6554
@ -63,7 +63,12 @@ class CLI < Clim
|
||||
Plugin::Downloader.default
|
||||
|
||||
spawn do
|
||||
Server.new.start
|
||||
begin
|
||||
Server.new.start
|
||||
rescue e
|
||||
Logger.fatal e
|
||||
Process.exit 1
|
||||
end
|
||||
end
|
||||
|
||||
MainFiber.start_and_block
|
||||
|
Loading…
x
Reference in New Issue
Block a user