lib/rack/handler/toycol.rb in toycol-0.2.1 vs lib/rack/handler/toycol.rb in toycol-0.2.2

- old
+ new

@@ -27,16 +27,18 @@ def select_background_server case @preferred_background_server when "puma" return "puma" if puma_requireable? - puts "Puma is not installed in your environment." - raise LoadError + raise LoadError, "Puma is not installed in your environment." when nil puma_requireable? ? "puma" : "build_in" else "build_in" end + rescue LoadError + Process.kill(:INT, Process.ppid) + abort end def puma_requireable? require "rack/handler/puma" true