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