Skip to content
Browse files

Add error handling to bin/passenger-status when passed an invalid pid

  • Loading branch information...
1 parent 6b39c23 commit 2c90ed574a15c773948370e27950e5d4ae8c5062 @briandoll committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 bin/passenger-status
View
5 bin/passenger-status
@@ -37,6 +37,11 @@ BLACK_BG = "\e[40m"
BLUE_BG = "\e[44m"
def show_status(control_process, options = {})
+ unless control_process
+ STDERR.puts "*** ERROR: No Passenger instance by that pid"
+ exit 2
+ end
+
case options[:show]
when 'pool'
begin

0 comments on commit 2c90ed5

Please sign in to comment.
Something went wrong with that request. Please try again.