Stop the process when the server fails to start

This commit is contained in:
Alex Ling 2021-01-18 06:44:10 +00:00
parent 952aa0c6ca
commit 377c4c6554

View File

@ -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