mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -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
|
Plugin::Downloader.default
|
||||||
|
|
||||||
spawn do
|
spawn do
|
||||||
Server.new.start
|
begin
|
||||||
|
Server.new.start
|
||||||
|
rescue e
|
||||||
|
Logger.fatal e
|
||||||
|
Process.exit 1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
MainFiber.start_and_block
|
MainFiber.start_and_block
|
||||||
|
Loading…
x
Reference in New Issue
Block a user