Skip to content

Commit

Permalink
Helpful message when Sinatra::Runner times out
Browse files Browse the repository at this point in the history
  • Loading branch information
dentarg committed Dec 29, 2023
1 parent 0e43702 commit ca6b71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sinatra-contrib/lib/sinatra/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def ping(timeout = 10)

if Time.now - @started > timeout
warn command, log
raise 'timeout'
raise "timeout starting server with command '#{command}'"
else
sleep 0.1
end
Expand Down

0 comments on commit ca6b71c

Please sign in to comment.