Permalink
Browse files

report command and output when the PID can't be found

  • Loading branch information...
1 parent 2b7c1a7 commit 4f5dae70ff8cc268e03de07400931c1202b64dec Andre Lewis committed Jul 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 jmx_agent/jmx_agent.rb
View
@@ -60,7 +60,7 @@ def read_mbean(jmx_cmd, mbean, attributes)
result = `#{command} 2>&1`
if result.match(/No such PID (\d+)/)
- error("Java PID #{$1} is invalid -- no such PID")
+ error("Java PID #{$1} is invalid", "Command: #{command}\n\nResult: #{result}")
return {}
end

0 comments on commit 4f5dae7

Please sign in to comment.